-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.xml
45 lines (38 loc) · 1.54 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
<?xml version="1.0"?>
<project name="Simple" default="build" basedir=".">
<target name="layout">
<property name="source.path" value="src"/>
<property name="javadoc.path" value="javadoc"/>
<property name="build.path" value="build"/>
<property name="jar.path" value="jar"/>
<property name="test.path" value="test"/>
<property name="version" value="4.1.21"/>
</target>
<target name="clean" depends="layout">
<delete dir="${build.path}"/>
<delete dir="${jar.path}"/>
</target>
<target name="prepare" depends="clean">
<mkdir dir="${build.path}"/>
<mkdir dir="${jar.path}"/>
</target>
<target name="build" depends="prepare">
<javac target="1.5" srcdir="${source.path}" destdir="${build.path}" debug="true" debuglevel="lines,vars,source" encoding="UTF-8"/>
<jar jarfile="${jar.path}/simple-${version}.jar" basedir="${build.path}"/>
<delete dir="${build.path}"/>
</target>
<target name="test" depends="layout">
<ant antfile="build.xml" dir="${test.path}" inheritall="false"/>
<delete dir="${build.path}"/>
</target>
<target name="javadoc" depends="layout">
<mkdir dir="${javadoc.path}"/>
<javadoc sourcepath="${source.path}" packagenames="org.simpleframework.*" destdir="${javadoc.path}" private="false"/>
<delete dir="${build.path}"/>
</target>
<target name="all">
<antcall target="build"/>
<antcall target="javadoc"/>
<antcall target="test"/>
</target>
</project>