Class JavaFXJLinkMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.openjfx.JavaFXBaseMojo
org.openjfx.JavaFXJLinkMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
@Mojo(name="jlink",
requiresDependencyResolution=RUNTIME)
public class JavaFXJLinkMojo
extends JavaFXBaseMojo
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanAdd the option--bind-servicesor not, default false.private IntegerCompression level of the resources being used, equivalent to:-c, --compress=level.private boolean--ignore-signing-information, default falseprivate StringThe executable.private StringThe name of the folder with the resulting runtime image, equivalent to--output <path>private booleanTurn on verbose mode, equivalent to:--verbose, default falseprivate StringWhen set, creates a zip of the resulting runtime image.private StringOptional jmodsPath path for local builds.private StringAdd a launcher script, equivalent to:--launcher <name>=<module>[/<mainclass>].private booleanRemove theincludesdirectory in the resulting runtime image, equivalent to:--no-header-files, default falseprivate booleanRemove themandirectory in the resulting Java runtime image, equivalent to:--no-man-pages, default falseprivate booleanStrips debug information out, equivalent to-G, --strip-debug, default falseprivate org.codehaus.plexus.archiver.zip.ZipArchiverThe JAR archiver needed for archiving the environments.Fields inherited from class JavaFXBaseMojo
basedir, builddir, classpathElements, commandlineArgs, JAVAFX_PREFIX, mainClass, moduleDescriptor, modulepathElements, options, outputFile, pathElements, project, skip, workingDirectoryFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class JavaFXBaseMojo
executeCommandLine, executeCommandLine, getExecutablePath, getParent, handleSystemEnvVariables, handleWorkingDirectory, isMavenUsingJava8, isTargetUsingJava8, preparePathsMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
stripDebug
@Parameter(property="javafx.stripDebug", defaultValue="false") private boolean stripDebugStrips debug information out, equivalent to-G, --strip-debug, default false -
compress
Compression level of the resources being used, equivalent to:-c, --compress=level. Valid values:0, 1, 2, default 2 -
noHeaderFiles
@Parameter(property="javafx.noHeaderFiles", defaultValue="false") private boolean noHeaderFilesRemove theincludesdirectory in the resulting runtime image, equivalent to:--no-header-files, default false -
noManPages
@Parameter(property="javafx.noManPages", defaultValue="false") private boolean noManPagesRemove themandirectory in the resulting Java runtime image, equivalent to:--no-man-pages, default false -
bindServices
@Parameter(property="javafx.bindServices", defaultValue="false") private boolean bindServicesAdd the option--bind-servicesor not, default false. -
ignoreSigningInformation
@Parameter(property="javafx.ignoreSigningInformation", defaultValue="false") private boolean ignoreSigningInformation--ignore-signing-information, default false -
jlinkVerbose
@Parameter(property="javafx.jlinkVerbose", defaultValue="false") private boolean jlinkVerboseTurn on verbose mode, equivalent to:--verbose, default false -
launcher
Add a launcher script, equivalent to:--launcher <name>=<module>[/<mainclass>]. -
jlinkImageName
The name of the folder with the resulting runtime image, equivalent to--output <path> -
jlinkZipName
When set, creates a zip of the resulting runtime image. -
jlinkExecutable
The executable. Can be a full path or the name of the executable. In the latter case, the executable must be in the PATH for the execution to work.
-
jmodsPath
Optional jmodsPath path for local builds. -
zipArchiver
@Component(role=org.codehaus.plexus.archiver.Archiver.class, hint="zip") private org.codehaus.plexus.archiver.zip.ZipArchiver zipArchiverThe JAR archiver needed for archiving the environments.
-
-
Constructor Details
-
JavaFXJLinkMojo
public JavaFXJLinkMojo()
-
-
Method Details
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoExecutionException
-
createCommandArguments
-
createZipArchiveFromImage
- Throws:
org.apache.maven.plugin.MojoExecutionException
-