summaryrefslogtreecommitdiffstats
path: root/build.xml
diff options
context:
space:
mode:
Diffstat (limited to 'build.xml')
-rw-r--r--build.xml16
1 files changed, 11 insertions, 5 deletions
diff --git a/build.xml b/build.xml
index 24d18f0..8dde32e 100644
--- a/build.xml
+++ b/build.xml
@@ -7,11 +7,15 @@
<property name="dist" value="${basedir}/fernflower.jar"/>
<property name="test-src" value="${basedir}/test"/>
<property name="test-out" value="${basedir}/out/test"/>
- <!-- external dependencies, adjust to your own -->
- <property name="junit" value="${basedir}/../../../lib/junit-4.11.jar"/>
- <property name="hamcrest" value="${basedir}/../../../lib/hamcrest-core-1.3.jar"/>
</target>
+ <!-- external dependencies, adjust to your own -->
+ <path id="junit">
+ <file name="${basedir}/../../../lib/junit-4.11.jar"/>
+ <file name="${basedir}/../../../lib/hamcrest-core-1.3.jar"/>
+ <file name="${basedir}/../../../lib/hamcrest-library-1.3.jar"/>
+ </path>
+
<target name="clean" depends="init">
<delete includeemptydirs="true" failonerror="false">
<fileset dir="${out}"/>
@@ -36,13 +40,15 @@
<target name="test-compile" depends="init,compile">
<mkdir dir="${test-out}"/>
<javac srcdir="${test-src}" destdir="${test-out}" source="1.6" target="1.6" encoding="UTF-8" debug="true" includeantruntime="false">
- <classpath path="${out}:${junit}:${hamcrest}"/>
+ <classpath path="${out}"/>
+ <classpath refid="junit"/>
</javac>
</target>
<target name="test" depends="init,test-compile">
<junit printsummary="true" haltonfailure="true">
- <classpath path="${test-out}:${out}:${junit}:${hamcrest}"/>
+ <classpath path="${test-out}:${out}"/>
+ <classpath refid="junit"/>
<batchtest>
<fileset dir="${test-src}" includes="**/*Test.java"/>
</batchtest>