forked from RoboCup-SPL/GameController
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
118 lines (109 loc) · 5.24 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
<?xml version = '1.0' encoding = 'utf-8'?>
<!DOCTYPE project>
<project default="jar">
<property name="src.dir" value="src"/>
<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}"/>
<javac srcdir="${src.dir}" destdir="${classes.dir}" includeantruntime="false" source="1.7" target="1.7" encoding="utf-8" debug="true" debuglevel="lines,vars,source">
<compilerarg value="-Xlint:-options"/> <!-- ignore nagging about missing bootstrap class path -->
<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/">
<manifest>
<attribute name="Main-Class" value="controller.GameController"/>
<attribute name="Author" value="Michel Bartsch, Marcel Steinbeck, Thomas Roefer" />
</manifest>
</jar>
<jar destfile="${jar.dir}/GameStateVisualizer.jar" basedir="${classes.dir}" includes="${common_classes} visualizer/">
<manifest>
<attribute name="Main-Class" value="visualizer.GameStateVisualizer"/>
<attribute name="Author" value="Michel Bartsch, Thomas Roefer" />
</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}/TeamCommunicationMonitor.jar" basedir="${classes.dir}" includes="${common_classes} 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" />
</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>
<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"/>
</target>
<target name="run" depends="jar">
<java jar="${jar.dir}/GameController.jar" fork="true"/>
</target>
<target name="run_visualizer" depends="jar">
<java jar="${jar.dir}/GameStateVisualizer.jar" fork="true"/>
</target>
<target name="run_analyzer" depends="jar">
<java jar="${jar.dir}/LogAnalyzer.jar" 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>
</project>