-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathbuild.xml
executable file
·70 lines (61 loc) · 2.3 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
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!--
GJ API Build File
-->
<project default="jar" name="GJAPI">
<property name="src.dir" value="src/main/java" />
<property name="obj.dir" value="build/classes" />
<property name="target.dir" value="build/lib" />
<property name="javadoc.dir" value="docs" />
<!-- Compile and archive Aethershard. -->
<target name="jar" depends="clean">
<antcall target="compile" />
<antcall target="archive" />
</target>
<!-- Clean up the environment. -->
<target name="clean">
<delete includeEmptyDirs="true">
<fileset dir="${obj.dir}" includes="**/*" defaultExcludes="no" />
</delete>
<delete file="${target.dir}/GJAPI.jar" />
<!--<delete>
<fileset dir="${src.dir}" includes="**/*.orig" />
</delete>
<delete>
<fileset dir="." defaultExcludes="no">
<include name="**/*.DS_Store"/>
</fileset>
</delete>-->
</target>
<!-- Compile the code put results into obj.dir. -->
<target name="compile">
<mkdir dir="${obj.dir}" />
<javac destdir="${obj.dir}" debug="on" source="1.7" target="1.7" includeantruntime="false">
<src path="${src.dir}" />
<include name="org/gamejolt/**" />
<classpath>
<fileset dir="lib">
<include name="**/*.jar" />
</fileset>
</classpath>
</javac>
</target>
<!-- Jar compiled code and place result into target.dir. -->
<target name="archive">
<jar destfile="${target.dir}/GJAPI.jar">
<fileset dir="${obj.dir}" />
<zipgroupfileset dir="lib" includes="*.jar" />
</jar>
</target>
<!-- Generate Javadocs. -->
<target name="javadoc">
<javadoc sourcepath="${src.dir}" destdir="${javadoc.dir}" author="true" version="true" windowtitle="Game Jolt API">
<!-- <fileset dir="src" defaultexcludes="yes">
<exclude name="Test/**"/>
</fileset> -->
<doctitle><![CDATA[<h1>Game Jolt API JavaDoc</h1>]]></doctitle>
<bottom><![CDATA[<i>Copyright © 2009 - 2010 <a href='http://www.ashleygwinnell.co.uk/' target='new'>Ashley Gwinnell</a>. All Rights Reserved.</i>]]></bottom>
<link href="http://www.ashleygwinnell.co.uk"/>
</javadoc>
</target>
</project>