-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.xml
More file actions
116 lines (100 loc) · 4.12 KB
/
build.xml
File metadata and controls
116 lines (100 loc) · 4.12 KB
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
<!-- Le istruzioni su come usare ANT per eseguire il progetto, sono incluse nel file
di README, nella home del progetto -->
<project name="Tablut" default="compile">
<target name="clean">
<delete dir="build"/>
</target>
<target name="compile">
<mkdir dir="build"/>
<javac encoding="iso-8859-1" srcdir="src" destdir="build" includeantruntime="false">
<classpath>
<pathelement path="lib/gson-2.2.2.jar" />
<pathelement path="lib/commons-cli-1.4.jar" />
</classpath>
</javac>
<copy todir="build">
<fileset dir="src" excludes="*.java"/>
</copy>
</target>
<target name="server">
<java classname="it.unibo.ai.didattica.competition.tablut.server.Server" fork="true">
<classpath>
<pathelement location="lib/gson-2.2.2.jar"/>
<pathelement location="lib/commons-cli-1.4.jar"/>
<pathelement location="build"/>
</classpath>
</java>
</target>
<target name="server-jar">
<jar destfile="server.jar" filesetmanifest="mergewithoutmain">
<manifest>
<attribute name="Main-Class" value="it.unibo.ai.didattica.competition.tablut.server.Server"/>
<attribute name="Class-Path" value="."/>
</manifest>
<fileset dir="build"/>
<zipfileset excludes="META-INF/*.SF" src="lib/gson-2.2.2.jar"/>
<zipfileset excludes="META-INF/*.SF" src="lib/commons-cli-1.4.jar"/>
</jar>
</target>
<target name="gui-server">
<java classname="it.unibo.ai.didattica.competition.tablut.server.Server" fork="true">
<arg value="-g"/>
<classpath>
<pathelement location="lib/gson-2.2.2.jar"/>
<pathelement location="lib/commons-cli-1.4.jar"/>
<pathelement location="build"/>
</classpath>
</java>
</target>
<target name="tabotwhite">
<java classname="it.unibo.ai.didattica.competition.tablut.client.TablutRandomWhiteClient" fork="true">
<classpath>
<pathelement location="lib/gson-2.2.2.jar"/>
<pathelement location="build"/>
</classpath>
</java>
</target>
<target name="tabotblack">
<java classname="it.unibo.ai.didattica.competition.tablut.client.TablutRandomBlackClient" fork="true">
<classpath>
<pathelement location="lib/gson-2.2.2.jar"/>
<pathelement location="build"/>
</classpath>
</java>
</target>
<target name="random-jar">
<jar destfile="random.jar" filesetmanifest="mergewithoutmain">
<manifest>
<attribute name="Main-Class" value="it.unibo.ai.didattica.competition.tablut.client.TablutRandomClient"/>
<attribute name="Class-Path" value="."/>
</manifest>
<fileset dir="build"/>
<zipfileset excludes="META-INF/*.SF" src="lib/gson-2.2.2.jar"/>
<zipfileset excludes="META-INF/*.SF" src="lib/commons-cli-1.4.jar"/>
</jar>
</target>
<target name="humanwhite">
<java classname="it.unibo.ai.didattica.competition.tablut.client.TablutHumanWhiteClient" fork="true">
<classpath>
<pathelement location="lib/gson-2.2.2.jar"/>
<pathelement location="build"/>
</classpath>
</java>
</target>
<target name="humanblack">
<java classname="it.unibo.ai.didattica.competition.tablut.client.TablutHumanBlackClient" fork="true">
<classpath>
<pathelement location="lib/gson-2.2.2.jar"/>
<pathelement location="build"/>
</classpath>
</java>
</target>
<target name="tester">
<java classname="it.unibo.ai.didattica.competition.tablut.tester.Tester" fork="true">
<classpath>
<pathelement location="lib/gson-2.2.2.jar"/>
<pathelement location="build"/>
</classpath>
</java>
</target>
</project>