-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.xml
63 lines (53 loc) · 2.07 KB
/
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<project name="org.sybila.ode" default="main" basedir=".">
<property name="java.src.dir" value="java/src"/>
<property name="java.build.dir" value="java/build"/>
<property name="tests.src.dir" value="tests/src"/>
<property name="tests.build.dir" value="tests/build"/>
<property name="tests.report.dir" value="tests/report"/>
<property name="libs.dir" value="libs"/>
<property name="libs.jcuda.dir" value="${libs.dir}/jcuda"/>
<property name="main.class" value="org.sybila.ode.benchmark.Main" />
<path id="classpath">
<dirset dir="${libs.jcuda.dir}"/>
<fileset dir="${libs.jcuda.dir}" includes="*.jar"/>
<fileset dir="${libs.dir}" includes="*.jar"/>
<dirset dir="${java.build.dir}"/>
<dirset dir="${tests.build.dir}"/>
</path>
<target name="init">
<mkdir dir="${java.build.dir}"/>
<mkdir dir="${tests.report.dir}"/>
<mkdir dir="${tests.build.dir}"/>
</target>
<target name="clean">
<delete verbose="true">
<fileset dir="${java.build.dir}"/>
<fileset dir="${tests.build.dir}"/>
<fileset dir="${tests.report.dir}"/>
</delete>
</target>
<target name="build" depends="init">
<javac fork="true" srcdir="${java.src.dir}" destdir="${java.build.dir}" classpathref="classpath" debug="on" debuglevel="lines,source"/>
</target>
<target name="build-tests" depends="build">
<javac fork="true" srcdir="${tests.src.dir}" destdir="${tests.build.dir}" classpathref="classpath" debug="on" debuglevel="lines,source"/>
</target>
<target name="test" depends="build-tests">
<junit printsummary="no">
<formatter type="plain" usefile="false"/>
<sysproperty key="java.library.path" value="${libs.jcuda.dir}"/>
<classpath>
<path refid="classpath"/>
</classpath>
<batchtest fork="yes">
<fileset dir="${tests.build.dir}" includes="**/*Test.class" excludes="**/Abstract*"/>
</batchtest>
</junit>
</target>
<target name="run" depends="clean, build">
<java fork="true" classname="${main.class}" classpathref="classpath">
<sysproperty key="java.library.path" value="${libs.jcuda.dir}"/>
</java>
</target>
<target name="main" depends="run"/>
</project>