forked from nanodeath/fizzy
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.xml
51 lines (43 loc) · 1.79 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
<project name="fizzy" default="package">
<target name="init">
<property name="build.number" value="0.1b"/>
<property name="jbox2d.jar" value="lib/jbox2d-library-2.1.2.jar"/>
<property name="build.dir" value="target"/>
<delete dir="${build.dir}"/>
<mkdir dir="${build.dir}/classes"/>
<property name="fizzy.jar" value="fizzy.jar"/>
<property name="fizzy.zip" value="fizzy-${build.number}.zip"/>
<path id="fizzy.classpath">
<pathelement path="${jbox2d.jar}"/>
</path>
</target>
<target name="compile" depends="init">
<delete file="${build.dir}/${fizzy.jar}"/>
<javac includes="**/**" debug="true" srcdir="src" destdir="${build.dir}/classes" target="1.6" source="1.6"
classpathref="fizzy.classpath" />
<jar destfile="${build.dir}/${fizzy.jar}"
basedir="${build.dir}/classes" includes="**/**"/>
</target>
<target name="javadoc" depends="init">
<delete dir="${build.dir}/javadoc"/>
<javadoc sourcepath="src"
defaultexcludes="yes"
destdir="${build.dir}/javadoc"
author="true"
version="true"
use="true"
classpathref="fizzy.classpath"
windowtitle="Fizzy - A simply wrapper around JBox2D">
<doctitle><![CDATA[<h1>Fizzy</h1>]]></doctitle>
<bottom><![CDATA[<i>Copyright © 2010 New Dawn Software. All Rights Reserved.</i>]]></bottom>
</javadoc>
</target>
<target name="package" depends="compile, javadoc">
<zip destfile="${fizzy.zip}">
<fileset dir="${build.dir}" includes="${fizzy.jar}"/>
<fileset dir="." includes="${jbox2d.jar}"/>
<fileset dir="${build.dir}" includes="javadoc"/>
<fileset dir="." includes="readme.txt"/>
</zip>
</target>
</project>