-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
68 lines (54 loc) · 2.25 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
<?xml version="1.0"?>
<project name="aggir" default="jar" basedir=".">
<!-- ====================================================== -->
<!-- Compiler Options -->
<!-- ====================================================== -->
<property name="javac.debug" value="on" />
<property name="javac.optimize" value="on" />
<property name="javac.version" value="1.6" />
<property name="javac.args" value="-Xlint" />
<property name="version" value="0.0.1"/>
<property name="build.dir" location="target"/>
<property name="lib.dir" location="lib_jars" />
<!-- Build classpath -->
<path id="classpath">
<pathelement location="${build.dir}/classes" />
<fileset dir="${lib.dir}">
<include name="*.jar" />
</fileset>
</path>
<target name="init">
<mkdir dir="${build.dir}" />
<mkdir dir="${build.dir}/classes" />
</target>
<!-- ================================================================== -->
<!-- Compile -->
<!-- ================================================================== -->
<target name="compile" depends="init">
<javac
srcdir="src"
destdir="${build.dir}/classes"
debug="${javac.debug}"
optimize="${javac.optimize}"
target="${javac.version}"
source="${javac.version}"
deprecation="${javac.deprecation}">
<classpath refid="classpath" />
</javac>
</target>
<!-- ================================================================== -->
<!-- Build Jar -->
<!-- ================================================================== -->
<target name="jar" depends="compile">
<jar jarfile="${build.dir}/aggir-0.0.1.jar"
basedir="${build.dir}/classes"
excludes="**/test*">
</jar>
</target>
<!-- ================================================================== -->
<!-- Clean. -->
<!-- ================================================================== -->
<target name="clean">
<delete dir="${build.dir}" />
</target>
</project>