-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
36 lines (28 loc) · 885 Bytes
/
build.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?xml version="1.0" encoding="UTF-8"?>
<project name="raytrace-opencl" default="build" basedir=".">
<path id="cp">
<fileset dir="libs">
<include name="*.jar"/>
</fileset>
</path>
<property name="classes.dir" value="classes"/>
<property name="src.dir" value="src"/>
<property name="jar" value="${ant.project.name}.jar"/>
<target name="init">
</target>
<target name="build" depends="init">
<mkdir dir="${classes.dir}"/>
<javac srcdir="${src.dir}" destdir="${classes.dir}" classpathref="cp" />
<jar jarfile="${jar}" compress="true">
<fileset dir="${classes.dir}"/>
<manifest>
<attribute name="Main-Class" value="org.raytrace.RaytraceOpencl" />
<attribute name="Class-Path" value="libs/JOCL-0.1.9.jar" />
</manifest>
</jar>
</target>
<target name="clean">
<delete dir="${classes.dir}"/>
<delete file="${jar}"/>
</target>
</project>