-
Notifications
You must be signed in to change notification settings - Fork 37
/
build.xml
47 lines (40 loc) · 1.82 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
<project>
<property name="target.version" value="1.8"/>
<property name="run.classpath" value="bin"/>
<property name="n_games" value="2"/>
<target name="clean">
<delete dir="bin"/>
</target>
<!-- Compile ======================================================== -->
<target name="compile">
<mkdir dir="bin"/>
<javac srcdir="src" destdir="bin" debug="false" includeantruntime="false" source="${target.version}" target="${target.version}"/>
</target>
<target name="debug">
<mkdir dir="bin"/>
<javac srcdir="src" destdir="bin" debug="true" includeantruntime="false" source="${target.version}" target="${target.version}"/>
</target>
<!-- Run Client with StudentPlayer ======================================================== -->
<target name="student" depends="compile">
<java classpath="${run.classpath}" classname="boardgame.Client" fork="true">
<arg value="student_player.StudentPlayer"/>
</java>
</target>
<!-- Run server ==================================================================== -->
<target name="gui" depends="compile">
<java classpath="${run.classpath}" classname="boardgame.Server" fork="true"/>
</target>
<target name="server" depends="compile">
<java classpath="${run.classpath}" classname="boardgame.Server" fork="true">
<arg value="-k"/>
<arg value="-ng"/>
</java>
</target>
<!-- Run autoplay ====================================================== -->
<!-- Can specify a different value for n_games by supplying -Dn_games=10 at command line -->
<target name="autoplay" depends="compile">
<java classpath="bin" classname="autoplay.Autoplay" fork="true">
<arg value="${n_games}"/>
</java>
</target>
</project>