Changes for page JApplication

Last modified by Andrus Adamchik on 2006/12/10 12:40

From version 53.1
edited by Andrus Adamchik
on 2006/09/16 13:26
Change comment: There is no comment for this version
To version 54.1
edited by Andrus Adamchik
on 2006/09/16 13:52
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -7,7 +7,7 @@
7 7  == Build Prerequisites and OS Specifics ==
8 8  
9 9  * Java launcher can be assembled on any platform and has no prerequisites.
10 -* Mac launcher can be assembled on any platform and has no prerequisites.
10 +* Mac launcher can be built on Mac, as it requires a JavaApplicationStab file.
11 11  * Windows launcher can currently be build on Windows only.
12 12  * Windows launcher requires [[NSIS>>http://nsis.sourceforge.net/Main_Page]] to be installed on the build machine.
13 13  
... ... @@ -18,10 +18,11 @@
18 18  |mainClass|Main Java class|yes|
19 19  |os|A family of operating systems. Currently supported values are "mac", "windows" and "java"|no (will use "java" if ommitted)|
20 20  |destDir|A destination directory where the application launcher should be installed|no (will use ##"$builddir"## if omitted)|
21 -|description|An optional short string identifying the application. If not specified, "name" is used|no|
21 +|longName|An optional string identifying the application human-readable name. If not specified, "name" is used.|no|
22 22  |icon|Platform-specific icon file (usually ".ico" on Windows and ".icns" on Mac)|no|mac,windows
23 23  |jvm|Minimal version of the Java Virtual machine required.|no|mac
24 24  |jvmOptions|Optional parameters to pass to the JVM, such as memory settings, etc.|no|mac
25 +|nsisHome|Location of NSIS installation. Ignored except on Windows.|no (default is "C:rogram FilesSIS")|windows
25 25  
26 26  == Nested Elements ==
27 27  
... ... @@ -32,3 +32,20 @@
32 32  === lib ===
33 33  
34 34  The [[FileSet>>http://ant.apache.org/manual/CoreTypes/fileset.html]] specifying jar files to be included in the application.
36 +
37 +== Examples ==
38 +
39 +Loading task:
40 +
41 +{{noformat}}
42 +<taskdef name="japplication" classname="org.objectstyle.woproject.ant.JApplication"/>
43 +{{/noformat}}
44 +
45 +Building a Windows application, resulting in "MyApp.exe" launcher that starts "MyApp.jar" file.
46 +
47 +{{noformat}}
48 +<japplication name="MyApp" destDir="dist" mainClass="org.example.Main" os="windows">
49 + <fileset dir="${build}/classes"/>
50 + <lib dir-"lib" includes="**/*.jar"/>
51 +</japplication>
52 +{{/noformat}}