-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
executable file
·53 lines (43 loc) · 1.37 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
<?xml version="1.0"?>
<project name="JPortForwarder" default="compile">
<property name="jarfile" value="JPortForwarder.jar"/>
<property name="zipfile" value="JPortForwarder.zip"/>
<property name="deploydir" value="deploy"/>
<property name="builddir" value="build"/>
<property name="srcdir" value="src"/>
<path id="compile.classpath">
<pathelement location="lib"/>
<fileset dir="lib">
<include name="*.jar"/>
</fileset>
</path>
<target name="clean">
<delete file="${deploydir}/${zipfile}"/>
<delete file="${deploydir}/${jarfile}"/>
<delete dir="${builddir}/jportforwarder"/>
</target>
<target name="compile" depends="copy">
<javac srcdir="${srcdir}"
destdir="${builddir}"
debug="on"
listfiles="yes">
<classpath refid="compile.classpath"/>
</javac>
</target>
<target name="copy">
<mkdir dir="${builddir}/jportforwarder"/>
<copy todir="${builddir}/jportforwarder">
<fileset dir="${srcdir}/jportforwarder" includes="*.gif"/>
</copy>
</target>
<target name="makejar" depends="compile">
<mkdir dir="${deploydir}"/>
<delete file="${deploydir}/${jarfile}"/>
<jar destfile="${deploydir}/${jarfile}" basedir="${builddir}" includes="jportforwarder/**"/>
</target>
<target name="makezip" depends="makejar">
<zip destfile="${deploydir}/${zipfile}" basedir="${deploydir}"
includes="**"
excludes="${zipfile}"/>
</target>
</project>