-
Notifications
You must be signed in to change notification settings - Fork 46
/
build.xml
71 lines (59 loc) · 1.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" ?>
<project name="april" default="build" basedir=".">
<!-- Build everything -->
<target name="build" depends="build-java,build-jar"/>
<!-- Clean everything -->
<target name="clean" depends="clean-java"/>
<!-- Dist Clean everyting -->
<target name="distclean" depends="clean">
<delete dir="build"/>
<delete dir="docs"/>
<delete file="april.jar"/>
<delete dir="depcache"/>
</target>
<!-- Build docs -->
<target name="docs">
<javadoc sourcepath="src/"
packagenames="*"
defaultexcludes="yes"
destdir="docs/api"
Public="yes"
source="1.7"
/>
</target>
<!-- Build Jar -->
<target name="build-jar" depends="build-java">
<mkdir dir="build"/>
<jar destfile="april.jar" compress="false" update="true">
<fileset dir="build">
<include name="**/*.class" />
<include name="*.class" />
</fileset>
<manifest>
<attribute name="Main-Class" value="april.April" />
</manifest>
</jar>
<copy file="april.jar" todir="." />
</target>
<target name="build-java">
<javac
srcdir="src"
includes="**/*.java"
debug="on"
optimize="off"
destdir="build"
compiler="extJavac"
deprecation="yes"
source="1.7"
target="1.7"
>
</javac>
</target>
<target name="clean-java" >
<delete>
<fileset dir="build" includes="**/*.class"/>
<fileset dir="." includes="**/*~" defaultexcludes="no"/>
<fileset dir="." includes="april.jar"/>
</delete>
</target>
</project>