-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
36 lines (30 loc) · 981 Bytes
/
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
<?xml version="1.0"?>
<project name="synchronization tool" default="jar" basedir=".">
<description>synchronization tool ant build</description>
<property name="src" value="src"/>
<property name="classfiles" value="bin"/>
<property name="lib" value="lib"/>
<property name="jarfile" value="synchtool.jar"/>
<path id="classpath">
<fileset dir="${lib}">
<include name="*.jar"/>
<include name="build/*.jar"/>
</fileset>
</path>
<target name="compile">
<mkdir dir="${classfiles}"/>
<javac srcdir="${src}" destdir="${classfiles}">
<classpath refid="classpath"/>
</javac>
</target>
<target name="jar" depends="compile">
<jar destfile="${jarfile}">
<fileset dir="${classfiles}"/>
<fileset dir="." includes="lib/*.jar"/>
</jar>
</target>
<target name="clean">
<delete dir="${classfiles}"/>
<delete file="${jarfile}"/>
</target>
</project>