-
Notifications
You must be signed in to change notification settings - Fork 8
/
README
39 lines (28 loc) · 1.22 KB
/
README
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
#### This is the read me
AppBundler is an Ant task for packaging up Desktop Java apps as native
executables. It can package Mac OS X .app bundles, Windows EXEs, JNLPs,
and double clickable jars that work anywhere.
To use AppBundler, create a bundle.xml in your project directory like this:
<app name="SimpleTest">
<jar name="simpletest.jar"
main-class="com.joshondesign.appbundler.simpletest.Main"/>
<jar name="XMLLib.jar"/>
</app>
The bundle.xml lists the jars which make up your app. The jar with your main
class must have a 'main-class' attribute.
Now create an ant target in your build.xml that looks like this:
<target name='package-app' depends='build'>
<taskdef name='appbundler'
classname='com.joshondesign.appbundler.BundlerTask'
classpath='build/classes;lib/XMLLib.jar'/>
<appbundler
bundle="bundle.xml"
target="mac"
destdir="dist"
libdir="build/jars;lib"
/>
</target>
That's it. Just run 'ant package-app' and a Mac bundle will appear in dist/mac.
Valid targets are mac, win, jnlp, onejar, and all.
'bundle', 'target', 'destdir', and 'libdir' must be set. 'libdir' is a semicolon
separated list of directories which contain your jars.