-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.xml
72 lines (60 loc) · 1.64 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
<?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="clean-src">
<exec executable="make" dir="${basedir}">
<arg line="-C ../src/ clean" />
</exec>
</target>
<target name="make-src">
<exec executable="make" dir="${basedir}" failonerror="true">
<arg line="-C ../src/" />
</exec>
</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.8"
target="1.8"
>
</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>