-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.xml
63 lines (55 loc) · 1.91 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
<project name="PaperManager" default="compile" basedir=".">
<description>
Build PaperManager using Apache Ant.
</description>
<!-- set global properties for this build -->
<property name="src" location="src"/>
<property name="build" location="bin"/>
<property name="dist" location="dist"/>
<property name="javadoc" location="javadoc"/>
<target name="init">
<!-- Create the time stamp -->
<tstamp/>
<!-- Create the build directory structure used by compile -->
<mkdir dir="${build}"/>
</target>
<target name="compile" depends="init"
description="compile the source " >
<!-- Compile the java code from ${src} into ${build} -->
<javac srcdir="${src}" destdir="${build}"/>
</target>
<target name="dist" depends="compile"
description="generate the distribution" >
<!-- Create the distribution directory -->
<mkdir dir="${dist}"/>
<!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
<jar jarfile="${dist}/PaperManager-${DSTAMP}.jar" basedir="${build}">
<fileset dir="${build}" />
<manifest>
<attribute name="Main-Class"
value="applications.PaperManager" />
<attribute name="Class-Path"
value="." />
</manifest>
</jar>
</target>
<target name="javadoc" description="create Javadocs">
<mkdir dir="${javadoc}"/>
<javadoc
destdir="${javadoc}">
<fileset dir="${src}" includes="**/*.java" />
</javadoc>
</target>
<target name="clean-dist" description="clean dist">
<!-- Delete the ${dist} directory tree -->
<delete dir="${dist}"/>
</target>
<target name="clean-build" description="clean build">
<!-- Delete the ${build} directory tree -->
<delete dir="${build}"/>
</target>
<target name="clean"
description="clean up build and dist" depends="clean-dist,clean-build">
<!-- Delete the ${build} and ${dist} directory trees -->
</target>
</project>