-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
39 lines (30 loc) · 1.04 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
<project default="test">
<property name="lib.dir" value="lib"/>
<path id="classpath">
<fileset dir="${lib.dir}" includes="**/*.jar"/>
</path>
<target name="clean">
<delete dir="out"/>
</target>
<target name="compile">
<mkdir dir="out/src/classes"/>
<javac srcdir="src" destdir="out/src/classes"/>
</target>
<target name="compileTests">
<mkdir dir="out/test/classes"/>
<javac srcdir="test" destdir="out/test/classes" classpathref="classpath" classpath="out/src/classes"/>
</target>
<target name="test" depends="compile,compileTests">
<junit printsummary="yes">
<classpath>
<path refid="classpath"/>
<path path="out/src/classes"/>
<path path="out/test/classes"/>
</classpath>
<formatter type="plain" usefile="false" />
<batchtest fork="yes">
<fileset dir="test" includes="**/*Test.java"/>
</batchtest>
</junit>
</target>
</project>