-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.xml
42 lines (35 loc) · 1.18 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
<?xml version="1.0"?>
<project name="tdg09" default="dist" basedir=".">
<!-- @author Asif Tamuri
@version 1.1
-->
<property name="src.dir" location="src/java"/>
<property name="build.dir" location="build"/>
<property name="dist.dir" location="dist"/>
<property name="libs.dir" location="lib"/>
<path id="build.classpath">
<fileset dir="${libs.dir}">
<include name="**/*.jar"/>
</fileset>
</path>
<target name="clean">
<delete dir="${build.dir}"/>
<delete dir="${dist.dir}"/>
</target>
<target name="makedir">
<mkdir dir="${build.dir}"/>
<mkdir dir="${dist.dir}"/>
</target>
<target name="compile" depends="clean, makedir">
<javac srcdir="${src.dir}" destdir="${build.dir}" classpathref="build.classpath" debug="true">
</javac>
</target>
<target name="jar" depends="compile">
<jar destfile="${dist.dir}\${ant.project.name}.jar" basedir="${build.dir}">
<zipgroupfileset dir="lib" includes="*.jar"/>
</jar>
</target>
<target name="dist" depends="compile, jar">
<description>Build everything</description>
</target>
</project>