-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathbuild.xml
73 lines (66 loc) · 1.69 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
<project name="anchor" default="compile" basedir=".">
<description></description>
<!--
Properties
-->
<property name="src" location="src"/>
<property name="class" location="class"/>
<property name="lib" location="lib"/>
<property name="dist" location="dist"/>
<property name="doc" location="doc/api"/>
<path id="project.classpath">
<pathelement path="${class}"/>
<fileset dir="lib" includes="*.jar"/>
</path>
<!--
Initialization
-->
<target name="init">
<!-- Create a time stamp -->
<tstamp/>
<!-- Create an output directory for class files -->
<mkdir dir="${class}"/>
<!-- Create an output directory for the final jar -->
<mkdir dir="${dist}"/>
</target>
<!--
Target: compile
-->
<target
name="compile"
depends="init"
description="Compile all the source files">
<javac
destdir="${class}"
classpathref="project.classpath"
debug="true"
deprecation="on"
listfiles="no"
>
<src path="${src}"/>
<include name="cc/**/*.java"/>
</javac>
</target>
<!--
Target: doc {build javadoc API documentation}
-->
<target
name="doc"
depends="init"
description="Build Javadoc API webpages for all the source files">
<javadoc
destdir="${doc}"
classpathref="project.classpath"
author="true" version="true" use="true"
windowtitle=""
>
<packageset dir="${src}" defaultexcludes="yes">
<include name="cc/**/*.java"/>
</packageset>
</javadoc>
</target>
<!-- Create a jar file -->
<target name="jar" depends="compile">
<jar destfile="${dist}/anchor.jar" basedir="${class}"/>
</target>
</project>