-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
82 lines (74 loc) · 2.08 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<project name="Quoridor" default="run" basedir=".">
<property name="code" location="code"/>
<property name="build" location="build"/>
<property name="lib" location="lib"/>
<property name="doc" location="doc"/>
<target name="clean">
<delete dir="${build}"/>
</target>
<target name="javadoc">
<delete dir="${doc}"/>
<javadoc sourcepath="${code}" destdir="${doc}" version="true" author="true">
<classpath>
<pathelement path="${lib}/junit-4.12.jar"/>
<pathelement path="${lib}/hamcrest-core-1.3.jar"/>
</classpath>
</javadoc>
</target>
<target name="build">
<mkdir dir="${build}"/>
<javac srcdir="${code}" destdir="${build}" classpath="lib/junit-4.12.jar"/>
</target>
<target name="run" depends="build">
<java classname="game.Game" fork="yes" dir="./build/">
<classpath>
<pathelement location="${build}"/>
</classpath>
</java>
</target>
<target name="stat2" depends="build">
<java classname="game.Stat">
<classpath>
<pathelement location="${build}"/>
</classpath>
<arg value="${numGame}"/>
<arg value="${strat1}"/>
<arg value="${strat2}"/>
</java>
</target>
<target name="stat3" depends="build">
<java classname="game.Stat">
<classpath>
<pathelement location="${build}"/>
</classpath>
<arg value="${numGame}"/>
<arg value="${strat1}"/>
<arg value="${strat2}"/>
<arg value="${strat3}"/>
</java>
</target>
<target name="stat4" depends="build">
<java classname="game.Stat">
<classpath>
<pathelement location="${build}"/>
</classpath>
<arg value="${numGame}"/>
<arg value="${strat1}"/>
<arg value="${strat2}"/>
<arg value="${strat3}"/>
<arg value="${strat4}"/>
</java>
</target>
<target name="test" depends="build">
<junit printsummary="yes" showoutput="yes" haltonfailure="false" fork="yes">
<classpath>
<pathelement path="${lib}/junit-4.12.jar"/>
<pathelement path="${lib}/hamcrest-core-1.3.jar"/>
<pathelement path="${build}"/>
</classpath>
<batchtest>
<fileset dir="${build}" includes="tests/*Test.class"/>
</batchtest>
</junit>
</target>
</project>