forked from RoboCup-Humanoid-TC/GameController
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
169 lines (148 loc) · 7.12 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
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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
<?xml version = '1.0' encoding = 'utf-8'?>
<!DOCTYPE project>
<project default="jar">
<property name="src.dir" value="src"/>
<property name="test.dir" value="test"/>
<property name="include.dir" value="include"/>
<property name="lib.dir" value="lib"/>
<property name="deps.dir" value="deps"/>
<property name="build.dir" value="build"/>
<property name="classes.dir" value="${build.dir}/classes"/>
<property name="jar.dir" value="${build.dir}/jar"/>
<property name="doc.dir" value="${build.dir}/doc"/>
<property name="resources.dir" value="resources" />
<property name="plugins.dir" value="plugins" />
<property name="common_classes" value="common/ data/" />
<target name="clean">
<delete dir="${build.dir}" quiet="true" />
</target>
<target name="compile">
<delete dir="${classes.dir}" quiet="true" />
<mkdir dir="${classes.dir}"/>
<!-- debug flags: debug="true" debuglevel="lines,vars,source" -->
<javac srcdir="${src.dir}" destdir="${classes.dir}" includeantruntime="false" source="1.8" target="1.8" encoding="utf-8">
<compilerarg value="-Xlint:-options"/> <!-- ignore nagging about missing bootstrap class path -->
<compilerarg value="-Xlint:unchecked"/>
<classpath>
<pathelement path="${classpath}"/>
<fileset dir="${deps.dir}">
<include name="**/*.jar"/>
</fileset>
</classpath>
</javac>
<javac srcdir="${test.dir}" destdir="${classes.dir}" includeantruntime="false" source="1.8" target="1.8" encoding="utf-8">
<compilerarg value="-Xlint:-options"/> <!-- ignore nagging about missing bootstrap class path -->
<compilerarg value="-Xlint:unchecked"/>
<classpath>
<pathelement path="${classpath}"/>
<fileset dir="${deps.dir}">
<include name="**/*.jar"/>
</fileset>
</classpath>
</javac>
</target>
<target name="jar" depends="compile">
<mkdir dir="${jar.dir}"/>
<jar destfile="${jar.dir}/GameController.jar" basedir="${classes.dir}" includes="${common_classes} controller/ teamcomm/">
<manifest>
<attribute name="Main-Class" value="controller.GameController"/>
<attribute name="Author" value="Michel Bartsch, Marcel Steinbeck, Thomas Roefer" />
</manifest>
</jar>
<jar destfile="${jar.dir}/GameControllerSimulator.jar" basedir="${classes.dir}" includes="${common_classes} controller/ teamcomm/">
<manifest>
<attribute name="Main-Class" value="controller.GameControllerSimulator"/>
<attribute name="Author" value="Maike Paetzel, Michel Bartsch, Marcel Steinbeck, Thomas Roefer" />
<attribute name="Class-Path" value="deps/json-simple-1.1.jar" />
</manifest>
</jar>
<jar destfile="${jar.dir}/ProtocolHelper.jar" basedir="${classes.dir}" includes="${common_classes} controller/ teamcomm/net/">
<manifest>
<attribute name="Main-Class" value="data.values.ProtocolHelper"/>
<attribute name="Author" value="Robert Kessler" />
</manifest>
</jar>
<jar destfile="${jar.dir}/LogAnalyzer.jar" basedir="${classes.dir}" includes="${common_classes} analyzer/">
<manifest>
<attribute name="Main-Class" value="analyzer.LogAnalyzer"/>
<attribute name="Author" value="Michel Bartsch, Thomas Roefer" />
</manifest>
</jar>
<jar destfile="${jar.dir}/plugins/common.jar" basedir="${classes.dir}" includes="teamcomm/gui/drawings/common/">
<manifest>
<attribute name="Author" value="Felix Thielke" />
</manifest>
</jar>
<jar destfile="${jar.dir}/TeamCommunicationMonitor.jar" basedir="${classes.dir}" includes="${common_classes} controller/ teamcomm/" excludes="teamcomm/gui/drawings/common/">
<manifest>
<attribute name="Main-Class" value="teamcomm.TeamCommunicationMonitor"/>
<attribute name="Author" value="Felix Thielke" />
<attribute name="Class-Path" value="deps/gluegen-rt.jar deps/jogl-all.jar plugins/common.jar" />
</manifest>
</jar>
<mkdir dir="${jar.dir}/lib"/>
<copy todir="${jar.dir}" overwrite="true">
<fileset dir="${resources.dir}">
<exclude name="${plugins.dir}/" />
</fileset>
</copy>
<copy todir="${jar.dir}/${plugins.dir}" overwrite="true">
<fileset dir="${resources.dir}/${plugins.dir}">
<include name="**/*.jar" />
<include name="**/resources/**" />
</fileset>
</copy>
<copy todir="${jar.dir}/include" overwrite="true">
<fileset dir="${include.dir}" />
</copy>
<copy todir="${jar.dir}/deps" overwrite="true">
<fileset dir="${deps.dir}">
<include name="**/*.jar"/>
</fileset>
</copy>
<copy file="${lib.dir}/libgamectrl.so" tofile="${jar.dir}/lib/libgamectrl.so"/>
<copy file="README.md" tofile="${jar.dir}/README.txt"/>
<copy file="TCM.md" tofile="${jar.dir}/TCM.txt"/>
</target>
<target name="run" depends="jar">
<java jar="${jar.dir}/GameController.jar" dir="${jar.dir}" fork="true"/>
</target>
<target name="protocol" depends="jar">
<java jar="${jar.dir}/ProtocolHelper.jar" dir="${jar.dir}" fork="true"/>
</target>
<target name="run_analyzer" depends="jar">
<java jar="${jar.dir}/LogAnalyzer.jar" dir="${jar.dir}" fork="true"/>
</target>
<target name="run_teamcomm" depends="jar">
<java jar="${jar.dir}/TeamCommunicationMonitor.jar" dir="${jar.dir}" fork="true"/>
</target>
<target name="javadoc">
<mkdir dir="${doc.dir}"/>
<javadoc access="public" author="true" destdir="${doc.dir}" nodeprecated="false" nodeprecatedlist="false" noindex="false" nonavbar="false" notree="false" packagenames="*" source="1.7" sourcepath="${src.dir}" splitindex="true" use="true" version="true">
<classpath>
<pathelement path="${classpath}"/>
<fileset dir="${deps.dir}">
<include name="**/*.jar"/>
</fileset>
</classpath>
</javadoc>
</target>
<target name="test" depends="compile">
<mkdir dir="test_reports"/>
<junit printsummary="yes" haltonfailure="no">
<classpath>
<pathelement location="${classes.dir}/"/>
<fileset dir="${deps.dir}">
<include name="**/*.jar"/>
</fileset>
</classpath>
<formatter type="plain"/>
<formatter type="xml"/>
<batchtest fork="yes" todir="test_reports">
<fileset dir="test">
<include name="*Test*"/>
</fileset>
</batchtest>
</junit>
</target>
</project>