JApplication

Version 68.1 by Andrus Adamchik on 2006/09/16 14:41
Warning: For security reasons, the document is displayed in restricted mode as it is not the current version. There may be differences and errors due to this.

(unreleased as of 09/16/2006)

Description

JApplication is a task for assembling native launchers of Java applications for a number of target platforms. Currently supports native launchers for Mac and Windows operating systems and also a "java launcher" - a single jar file that can be run via "java jar file.jar".

Build Prerequisites and OS Specifics

  • Java launcher can be assembled on any platform and has no prerequisites.
  • Mac launcher can be built on Mac, as it requires a JavaApplicationStab file.
  • Windows launcher can currently be build on Windows only.
  • Windows launcher requires NSIS to be installed on the build machine.

Parameters

AttributeDescriptionRequiredPlatforms
nameThe name of the application without OS-specific extensionyes 
mainClassMain Java classyes 
osA family of operating systems. Currently supported values are "mac", "windows" and "java"no (will use build machine os if ommitted; if the os is not supported, will use "java") 
destDirA destination directory where the application launcher should be installedno (will use "$basedir" if omitted) 
longNameAn optional string identifying the application human-readable name. If not specified, "name" is used.no 
iconPlatform-specific icon file (usually ".ico" on Windows and ".icns" on Mac)nomac,windows
jvmMinimal version of the Java Virtual machine required.nomac
jvmOptionsOptional parameters to pass to the JVM, such as memory settings, etc.nomac
nsisHomeLocation of NSIS installation. Ignored except on Windows.no (default is "C:rogram FilesSIS")windows

Nested Elements

fileset

The FileSet specifying Java classes and resources to be included in the application.

lib

The FileSet specifying jar files to be included in the application.

Examples

Loading task:

Unknown macro: noformat. Click on this message for details.

Building a Windows application, resulting in "MyApp.exe" launcher that starts "MyApp.jar" file.

Unknown macro: noformat. Click on this message for details.