forked from joshmarinacci/AppBundler
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
80 lines (68 loc) · 2.2 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
<?xml version="1.0" ?>
<project default="help">
<target name="help">
<echo>ant build just build it, already!</echo>
</target>
<target name="init">
</target>
<target name='build'>
<mkdir dir="build/classes"/>
<javac
srcdir="src"
classpath="lib/XMLLib.jar"
destdir="build/classes"
debug="true"
>
</javac>
<copy todir='build/classes'>
<fileset dir='src'>
<include name='**/*.plist'/>
<include name='**/JavaApplicationStub'/>
<include name='**/*.txt'/>
<include name='**/resources/**'/>
</fileset>
</copy>
</target>
<target name="jar">
<jar destfile="dist/AppBundler.jar" basedir="build/classes"/>
</target>
<target name="clean">
<delete dir="build"/>
<delete dir="dist"/>
</target>
<target name='build-testapp'>
<mkdir dir='build/testapp'/>
<javac
srcdir='test/src'
destdir='build/testapp'
>
</javac>
<mkdir dir='build/jars'/>
<jar basedir="build/testapp" destfile="build/jars/simpletest.jar">
</jar>
</target>
<target name="test-onejar" depends="build, build-testapp">
<mkdir dir='dist'/>
<mkdir dir='build/jars'/>
<java
classpath="build/classes;lib/XMLLib.jar"
classname="com.joshondesign.appbundler.Bundler" fork="true">
<arg value="--file=test/bundle.xml"/>
<arg value="--target=onejar"/>
<arg value="--outdir=dist/"/>
<arg value="--jardir=build/jars/"/>
<arg value="--jardir=lib/"/>
</java>
</target>
<target name='test-anttask' depends='build, build-testapp'>
<taskdef name='appbundler'
classname='com.joshondesign.appbundler.BundlerTask'
classpath='build/classes;lib/XMLLib.jar'/>
<appbundler
bundle="test/bundle.xml"
target="mac"
destdir="dist"
libdir="build/jars;lib"
/>
</target>
</project>