-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
86 lines (71 loc) · 2.56 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<!-- All our projects begin with the project tag -->
<project name="Saucillator" default="all" basedir=".">
<description>Builds, tests, and runs Saucillator for Macbook Pro.</description>
<!-- our init target is a prereq for everything -->
<target name="init">
<property name="src.dir" value="src" />
<property name="build.dir" value="build" />
<property name="lib.dir" value="lib" />
<property name="javadoc.dir" value="apidoc" />
<property name="jar.name" value="Saucillator.jar" />
</target>
<!-- prepare our folders and all that goodness -->
<target name="prepare" depends="init">
<mkdir dir="${build.dir}" />
<path id="master-classpath">
<fileset dir="${build.dir}" includes="**/*.class"/>
<fileset dir="${lib.dir}" includes="*.jar" />
<fileset dir="${lib.dir}" includes="*.jnilib" />
<pathelement path="${java.class.path}" />
</path>
</target>
<!-- compile the code -->
<target name="compile" depends="prepare">
<javac srcdir="${src.dir}"
destdir="${build.dir}"
includeantruntime="false">
<classpath refid="master-classpath" />
</javac>
</target>
<!-- create javadoc
<target name="javadoc" depends="compile">
<mkdir dir="${javadoc.dir}"/>
<javadoc
sourcepath="${src.dir}"
destdir="${javadoc.dir}"
classpathref="master-classpath"
author="true"
version="true"
use="true"
windowtitle="antlab API"
doctitle="<h1>ANTLAB</h1>"
/>
</target>-->
<!-- create a jar -->
<target name="jar" depends="compile">
<jar destfile="${jar.name}"
basedir="${build.dir}"
includes="**/*.class">
<manifest>
<attribute name="Main-Class" value="com.mattfeury.saucillator.macbook.Saucillator" />
<attribute name="Class-Path" value="lib/GlulogicMT.jar lib/jsyn_beta_163.jar lib/libSmsWrapper.jnilib"/>
</manifest>
</jar>
</target>
<!-- run the application -->
<target name="run" depends="jar">
<java jar="${jar.name}"
classpathref="master-classpath"
fork="true">
<sysproperty key="java.library.path" path="${lib.dir}"/>
</java>
</target>
<!-- clean up all files generated by the build -->
<target name="clean" depends="init" >
<delete dir="${build.dir}" />
<delete dir="${javadoc.dir}" />
<delete file="${jar.name}" />
</target>
<!-- run all tasks except cleanup -->
<target name="all" depends="run" />
</project>