forked from open-dis/xmlpg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
45 lines (36 loc) · 1.48 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" encoding="UTF-8"?>
<project name="xmlpg" default="dist" basedir=".">
<property name="src" location="src"/>
<property name="build" location="build"/>
<property name="lib" location="lib"/>
<property name="dist" location="dist"/>
<property name="jarfile" location="${dist}/${ant.project.name}.jar"/>
<property name="compile.debug" value="true"/>
<!--property name="opendis" location="../open-dis"/-->
<fileset id="lib.jars" dir="${lib}">
<include name="**/*.jar"/>
</fileset>
<path id="lib.path">
<fileset refid="lib.jars"/>
</path>
<target name="init" description="create initial directories">
<mkdir dir="${dist}"/>
<mkdir dir="${build}"/>
</target>
<target name="compile" depends="init" description="Compile code">
<javac srcdir="${src}" destdir="${build}"
source="1.5" target="1.5"
includeAntRuntime="no"
classpathref="lib.path" debug="${compile.debug}">
</javac>
</target>
<target name="jar" depends="compile" description="make jar file">
<jar jarfile="${jarfile}" basedir="build"/>
</target>
<target name="dist" depends="clean, init, compile, jar" description="compile everything">
</target>
<target name="clean" description="Remove build and dist directories">
<delete dir="${bin}"/>
<delete dir="${dist}"/>
</target>
</project>