public class JarMojo extends AbstractJfxToolsMojo
Builds an executable JAR for the project that has all the trappings needed to run as a JavaFX app. This will include Pre-Launchers and all the other weird and wonderful things that the JavaFX packaging tools allow and/or require.
Any runtime dependencies for this project will be included in a separate 'lib' sub-directory alongside the resulting JavaFX friendly JAR. The manifest within the JAR will have a reference to these libraries using the relative 'lib' path so that you can copy the JAR and the lib directory exactly as is and distribute this bundle.
The JAR and the 'lib' directory built by this Mojo are used as the inputs to the other distribution bundles. The native and web Mojos for example, will trigger this Mojo first and then will copy the resulting JAR into their own distribution bundles.
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
css2bin
Flag to switch on and off the compiling of CSS files to the binary format.
|
protected String |
preLoader
A custom class that can act as a Pre-Loader for your app.
|
deployDir, jfxAppOutputDir, jfxMainAppJarName, mainClass, project, verbose| Constructor and Description |
|---|
JarMojo() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute() |
getPackagerLibprotected boolean css2bin
protected String preLoader
Copyright © 2012-2013. All Rights Reserved.