-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathbuild.xml
71 lines (63 loc) · 2.58 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
<?xml version="1.0" encoding="UTF-8"?>
<project name="SUBFRAME" default="release" basedir=".">
<description>Builds, tests, and runs the project.</description>
<target name="release" depends="jars">
</target>
<target name="clean">
<delete dir="jars" failonerror="true" />
<delete dir="build" failonerror="true" />
<delete dir="tmpdoc/dev" failonerror="true" />
<delete dir="tmpdoc/api" failonerror="true" />
<delete dir="tmpdoc" failonerror="true" />
</target>
<target name="prepare" depends="clean">
<mkdir dir="jars" />
<mkdir dir="tmpdoc" />
<mkdir dir="build" />
</target>
<target name="clean-javadoc">
<delete includeEmptyDirs="true" failonerror="true">
<fileset dir="tmpdoc" includes="**/*" defaultexcludes="yes">
</fileset>
</delete>
</target>
<target name="javadoc" depends="clean-javadoc">
<javadoc destdir="tmpdoc" source="1.7" notree="false" nonavbar="false" noindex="false" splitindex="true" access="public" use="true" author="Fabian Praßer" version="0.2" windowtitle="SUBFRAME" private="false" failonerror="true">
<classpath>
<path path="lib/objectselector-0.1-lib.jar"/>
<path path="src/main" />
</classpath>
<packageset dir="src/main/" defaultexcludes="yes">
</packageset>
</javadoc>
</target>
<target name="compile" depends="prepare" description="compile the source ">
<javac srcdir="src/main/" destdir="build/">
<classpath>
<path path="lib/javassist.jar"/>
<path path="lib/objectselector-0.1-lib.jar"/>
<path path="src/main" />
</classpath>
</javac>
</target>
<target name="jars" depends="compile, javadoc">
<jar destfile="jars/subframe-0.2-lib.jar">
<zipfileset src="lib/javassist.jar"/>
<zipfileset src="lib/objectselector-0.1-lib.jar" excludes="META-INF/*.SF" />
<fileset dir="build" defaultexcludes="no">
</fileset>
</jar>
<jar destfile="jars/subframe-0.2-doc.jar">
<fileset dir="tmpdoc" defaultexcludes="no">
</fileset>
</jar>
<jar destfile="jars/subframe-0.2-src.jar">
<fileset dir="src/main" defaultexcludes="no">
</fileset>
<fileset dir="src/example" defaultexcludes="no">
</fileset>
</jar>
<delete dir="build" failonerror="true" />
<delete dir="tmpdoc" failonerror="true" />
</target>
</project>