public class NativeMojo extends AbstractJfxToolsMojo
Generates native deployment bundles (MSI, EXE, DMG, RPG, etc). This Mojo simply wraps the JavaFX packaging tools so it has all the problems and limitations of those tools. Most importantly, this will only generate a native bundle for the platform you are building on (e.g. if you're on Windows you will get an MSI and an EXE). Additionally you need to first download and install the 3rd-party tools that the JavaFX packaging tools require (e.g. Wix, Inno, etc).
For detailed information on generating native packages it is best to first read through the official documentation on the JavaFX packaging tools.
| Modifier and Type | Field and Description |
|---|---|
protected String |
identifier
Used as the 'id' of the application, and is used as the CFBundleDisplayName on Mac.
|
protected File |
nativeOutputDir
The output directory that the native bundles are to be built into.
|
protected String |
preLoader
A custom class that can act as a Pre-Loader for your app.
|
protected String |
vendor
The vendor of the application (i.e.
|
deployDir, jfxAppOutputDir, jfxMainAppJarName, mainClass, project, verbose| Constructor and Description |
|---|
NativeMojo() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute() |
getPackagerLibprotected String identifier
protected String vendor
protected File nativeOutputDir
The output directory that the native bundles are to be built into. This will be the base directory only as the JavaFX packaging tools use sub-directories that can't be customised. Generally just have a rummage through the sub-directories until you find what you are looking for.
This defaults to 'target/jfx/native' and the interesting files are usually under 'bundles'.
protected String preLoader
Copyright © 2012-2013. All Rights Reserved.