-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.xml
84 lines (76 loc) · 2.41 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
<project name="botballsim" default="dist" basedir=".">
<description>
A simple build file for botballsim
</description>
<!-- set global properties for this build -->
<property name="src" value="src"/>
<property name="rsc" value="rsc"/>
<property name="lib-src" value="lib-src"/>
<property name="lib-bin" value="lib-bin"/>
<property name="build" value="bin"/>
<property name="dist" value="dist"/>
<property name="docs" value="doc"/>
<property name="cbcjvm-antfile" value="cbcjvm-build.xml"/>
<target name="init" depends="clean-for-build">
<tstamp/>
<mkdir dir="${build}"/>
<mkdir dir="${docs}"/>
<!--copy in binary libraries-->
<copy todir="${build}">
<fileset dir="${lib-bin}/cbcjvm"/>
</copy>
<!--copy in images from rsc-->
<copy todir="${build}/images">
<fileset dir="${rsc}/images"/>
</copy>
<copy todir="${dist}">
<fileset dir="${rsc}"/>
</copy>
<!--decompress any binary jar files from lib-bin to bin-->
<!--unjar dest="${build}">
<fileset dir="${lib-bin}/somejarfile.jar">
</unjar-->
</target>
<target name="compile-depend" depends="cbcjvm"
description="compile the libs">
<antcall target="init"/>
<javac srcdir="${lib-src}" destdir="${build}"/>
</target>
<target name="compile" depends="compile-depend"
description="compile the source">
<javac srcdir="${src}" destdir="${build}"
classpath="${lib-bin}/cbcjvm"/>
</target>
<target name="document">
<javadoc packagenames="org.icx.sim.*"
sourcepath="${src}"
destdir="${docs}"
author="true"
version="true"
use="true"
windowtitle="BotballSim API - JavaDoc">
<doctitle><![CDATA[<h1>BotballSim API</h1>]]></doctitle>
<bottom><![CDATA[<i>botballsim</i>]]></bottom>
</javadoc>
</target>
<target name="dist" depends="compile"
description="generate the distribution">
<mkdir dir="${dist}"/>
<jar jarfile="${dist}/botballsim.jar" basedir="${build}">
<manifest>
<attribute name="Main-Class" value="org.icx.sim.SimTest"/>
<attribute name="Class-Path" value="../${rsc}"/>
</manifest>
</jar>
</target>
<target name="clean-for-build" description="clean up">
<delete dir="${build}"/>
<delete dir="${dist}"/>
</target>
<target name="clean" depends="clean-for-build">
<ant antfile="${cbcjvm-antfile}" target="clean"/>
</target>
<target name="cbcjvm">
<ant antfile="${cbcjvm-antfile}" />
</target>
</project>