-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.xml
52 lines (41 loc) · 1.59 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
<project basedir="." name="ICS4UC_RST">
<property name="build.dir" value="build"/>
<property name="src.dir" value="src"/>
<property name="test.dir" value="test"/>
<path id="classpath">
<pathelement location="lib/junit-4.12.jar"/>
<pathelement location="lib/hamcrest-core-1.3.jar"/>
<pathelement location="lib/xom-1.2.11.jar"/>
</path>
<target name="compile">
<mkdir dir="${build.dir}"/>
<javac srcdir="${src.dir}" destdir="${build.dir}" includeantruntime="false">
<classpath refid="classpath"/>
</javac>
</target>
<target name="test_student" depends="compile">
<junit haltonfailure="yes" fork="true">
<classpath>
<path refid="classpath"/>
<pathelement location="${build.dir}"/>
</classpath>
<formatter type="brief" usefile="false"/>
<batchtest id="Student">
<fileset dir="${src.dir}" includes="**/*Test.java"/>
</batchtest>
</junit>
</target>
<target name="test_teacher" depends="compile">
<junit haltonfailure="yes" fork="true">
<classpath>
<path refid="classpath"/>
<pathelement location="${build.dir}"/>
<pathelement location="${test.dir}"/>
</classpath>
<formatter type="brief" usefile="false"/>
<batchtest id="Teacher">
<fileset dir="${test.dir}"/>
</batchtest>
</junit>
</target>
</project>