-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
75 lines (59 loc) · 2.31 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
<project name="AetherCompiler" default="build" basedir=".">
<description>
Build file for AetherCompiler
</description>
<!-- Global properties -->
<property name="src" location="src" />
<property name="tmp" location="tmp" />
<property name="lib" location="lib" />
<property name="dist" location="dist" />
<property name="javadoc" location="doc/javadoc" />
<property name="build.sysclasspath" value="ignore"/>
<property name="version-tag" value="1.0" />
<property name="jar" location="${dist}/${ant.project.name}-${version-tag}.jar" />
<property name="sources" value="${dist}/${ant.project.name}-src-${version-tag}.zip" />
<path id="external_jars">
<fileset dir="${lib}">
<include name="*.jar" />
</fileset>
</path>
<target name="build">
<!-- Create the time stamp -->
<tstamp />
<!-- Create the build directory structure used by compile -->
<delete dir="${tmp}" />
<mkdir dir="${tmp}" />
<!-- Compile the java code from ${src} into ${tmp} -->
<javac srcdir="${src}" destdir="${tmp}" debug="on">
<classpath refid="external_jars" />
<compilerarg value="-Xlint:unchecked" />
</javac>
<!-- Put everything in ${tmp} into the jar file -->
<jar jarfile="${jar}" basedir="${tmp}">
<metainf dir=".." includes="LICENSE.txt" />
</jar>
<copy todir="${dist}">
<fileset dir="lib" includes="*.jar" />
</copy>
<!-- create a zip file with the sources -->
<zip destfile="${sources}">
<zipfileset dir="src" includes="**/*.java"/>
<zipfileset dir="." includes="../LICENSE.txt" />
</zip>
<!-- And delete the build dir -->
<delete dir="${tmp}" />
</target>
<target name="javadoc" description="create javadoc">
<delete dir="${javadoc}" />
<mkdir dir="${javadoc}" />
<javadoc destdir="${javadoc}" access="public" sourcepath="${src}">
<classpath refid="external_jars" />
<link href="http://download.oracle.com/javase/1.7.0/docs/api/" />
</javadoc>
</target>
<target name="clean" description="clean up">
<delete dir="${tmp}" />
<delete dir="${dist}" />
<delete dir="${javadoc}" />
</target>
</project>