-
Notifications
You must be signed in to change notification settings - Fork 8
/
build.xml
60 lines (43 loc) · 1.5 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
57
58
59
60
<project name="build" default="all">
<property name="src.dir" location="src"/>
<property name="build.dir" location="build"/>
<property name="classes.dir" location="bin"/>
<property name="lib.dir" location="lib"/>
<property name="resources.dir" location="resources"/>
<fileset dir="${lib.dir}" id="dependencies" />
<fileset id="resources" dir="${resources.dir}">
<include name="**/*"/>
</fileset>
<target name="init">
<echo>Java version = ${java.version}</echo>
<echo>Ant version = ${ant.version}</echo>
</target>
<target name="clean" depends="init">
<delete dir="${classes.dir}" />
<delete dir="${build.dir}" />
<mkdir dir="${classes.dir}" />
<mkdir dir="${build.dir}" />
</target>
<target name="compile" depends="clean">
<path id="classpath">
<fileset refid="dependencies" />
</path>
<javac includeantruntime="false" srcdir="${src.dir}" destdir="${classes.dir}" debug="on" deprecation="on" debuglevel="lines,vars,source">
<classpath refid="classpath"/>
</javac>
</target>
<target name="jar" depends="compile">
<copy todir="${classes.dir}">
<fileset refid="resources"/>
</copy>
<jar destfile="${build.dir}/papaya-builder.jar" basedir="${classes.dir}">
<zipgroupfileset dir="${lib.dir}" />
<manifest>
<attribute name="Main-Class" value="edu.uthscsa.ric.papaya.builder.Builder"/>
</manifest>
</jar>
</target>
<target name="all" depends="jar">
<echo>Done!</echo>
</target>
</project>