forked from 3breadt/dd-plist
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
56 lines (48 loc) · 1.61 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
<?xml version="1.0" encoding="UTF-8"?>
<project name="plist" default="compile" basedir=".">
<property name="source" value="src/main/java" />
<property name="test-src" value="src/test/java" />
<property name="build" value="target" />
<property name="doc" value="doc" />
<property name="dist" value="target" />
<property name="jar" value="dd-plist.jar" />
<target name="init">
<mkdir dir="${build}/classes" />
<!--mkdir dir="${build}/test-classes" /-->
<mkdir dir="${dist}" />
<mkdir dir="${doc}" />
</target>
<target name="clean">
<delete dir="${build}" />
<delete dir="${dist}" />
<delete dir="${doc}"/>
</target>
<target name="compile" depends="init">
<mkdir dir="${build}/classes/" />
<javac srcdir="${source}"
destdir="${build}/classes/"
target="1.5"
source="1.5"
debug="on" debuglevel="lines,vars,source"
includeantruntime="false"
fork="true" />
</target>
<target name="jar" depends="compile">
<jar destfile="${dist}/${jar}">
<fileset dir="${build}/classes"/>
</jar>
</target>
<target name="javadoc" depends="init">
<delete dir="${doc}/javadoc" />
<javadoc destdir="${doc}/javadoc">
<fileset dir="${source}"/>
</javadoc>
</target>
<target name="package" depends="jar,javadoc">
<zip destfile="${dist}/dd-plist.zip">
<fileset dir="${dist}" includes="${jar}" />
<fileset dir="." includes="*.txt" />
<fileset dir="${doc}"/>
</zip>
</target>
</project>