-
Notifications
You must be signed in to change notification settings - Fork 60
/
build.xml
108 lines (101 loc) · 4.95 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
<?xml version = '1.0' encoding = 'utf-8'?>
<!DOCTYPE project>
<project default="jar">
<property name="src.dir" value="src"/>
<property name="examples.dir" value="examples"/>
<property name="deps.dir" value="deps"/>
<property name="build.dir" value="build"/>
<property name="classes.dir" value="${build.dir}"/>
<property name="jar.dir" value="bin"/>
<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>
</target>
<target name="jar" depends="compile">
<mkdir dir="${jar.dir}"/>
<jar destfile="${jar.dir}/LogExporter.jar" basedir="${classes.dir}" includes="${common_classes} exporter/">
<manifest>
<attribute name="Main-Class" value="exporter.LogExporter"/>
<attribute name="Author" value="Tim Laue" />
</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} 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 deps/snakeyaml-2.2.jar plugins/common.jar" />
</manifest>
</jar>
<jar destfile="${jar.dir}/GameControllerTester.jar" basedir="${classes.dir}" includes="${common_classes} teamcomm/data/event/ teamcomm/net/GameControlDataReceiver.class tester/">
<manifest>
<attribute name="Main-Class" value="tester.GameControllerTester"/>
<attribute name="Author" value="Felix Thielke" />
</manifest>
</jar>
<jar destfile="${jar.dir}/EventRecorder.jar" basedir="${classes.dir}" includes="${common_classes} eventrecorder/ teamcomm/data/event/ teamcomm/net/">
<manifest>
<attribute name="Main-Class" value="eventrecorder.EventRecorder"/>
<attribute name="Author" value="Andre Muehlenbrock" />
</manifest>
</jar>
<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}/examples" overwrite="true">
<fileset dir="${examples.dir}" />
</copy>
<copy todir="${jar.dir}/deps" overwrite="true">
<fileset dir="${deps.dir}">
<include name="**/*.jar"/>
</fileset>
</copy>
<copy file="LICENSE" tofile="${jar.dir}/LICENSE"/>
<copy file="README.md" tofile="${jar.dir}/README.md"/>
<copy file="TCM.md" tofile="${jar.dir}/TCM.md"/>
</target>
<target name="run" 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.8" 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>