forked from LASER-UMASS/basic-stats
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
executable file
·51 lines (44 loc) · 1.49 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
<project name="Basic Stats" default="compile" basedir=".">
<property name="junit.jar" value="lib/junit-4.11.jar"/>
<!-- Clean up -->
<target name="clean" description="Clean">
<delete dir="bin"/>
</target>
<!-- Initialize build -->
<target name="init">
<mkdir dir="bin"/>
</target>
<!-- Compile the project -->
<target name="compile" depends="init" description="Compile all sources">
<javac includeantruntime="true"
srcdir="src"
destdir="bin"
debug="yes">
</javac>
</target>
<!-- Compile the test suite -->
<target name="compile.tests" depends="compile" description="Compile all tests">
<javac includeantruntime="true"
srcdir="test"
destdir="bin"
debug="yes">
<classpath location="${junit.jar}"/>
</javac>
</target>
<!-- Execute the test suite -->
<target name="test" depends="compile.tests" description="Run all unit tests">
<echo message="Running unit tests ..."/>
<junit printsummary="true"
showoutput="true"
haltonfailure="false">
<formatter type="plain" usefile="false"/>
<classpath path="bin"/>
<classpath location="${junit.jar}"/>
<batchtest fork="no">
<fileset dir="test">
<include name="**/*Test.java"/>
</fileset>
</batchtest>
</junit>
</target>
</project>