Package org.openjfx
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 boolean
Add the option--bind-services
or not, default false.private Integer
Compression level of the resources being used, equivalent to:-c, --compress=level
.private boolean
--ignore-signing-information
, default falseprivate String
The executable.private String
The name of the folder with the resulting runtime image, equivalent to--output <path>
private boolean
Turn on verbose mode, equivalent to:--verbose
, default falseprivate String
When set, creates a zip of the resulting runtime image.private String
Optional jmodsPath path for local builds.private String
Add a launcher script, equivalent to:--launcher <name>=<module>[/<mainclass>]
.private boolean
Remove theincludes
directory in the resulting runtime image, equivalent to:--no-header-files
, default falseprivate boolean
Remove theman
directory in the resulting Java runtime image, equivalent to:--no-man-pages
, default falseprivate boolean
Strips debug information out, equivalent to-G, --strip-debug
, default falseprivate org.codehaus.plexus.archiver.zip.ZipArchiver
The JAR archiver needed for archiving the environments.Fields inherited from class org.openjfx.JavaFXBaseMojo
basedir, builddir, classpathElements, commandlineArgs, JAVAFX_PREFIX, mainClass, moduleDescriptor, modulepathElements, options, outputFile, pathElements, project, skip, workingDirectory
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.openjfx.JavaFXBaseMojo
executeCommandLine, executeCommandLine, getExecutablePath, getParent, handleSystemEnvVariables, handleWorkingDirectory, isMavenUsingJava8, isTargetUsingJava8, preparePaths
Methods 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 theincludes
directory in the resulting runtime image, equivalent to:--no-header-files
, default false -
noManPages
@Parameter(property="javafx.noManPages", defaultValue="false") private boolean noManPagesRemove theman
directory 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-services
or 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
private List<String> createCommandArguments() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
-
createZipArchiveFromImage
- Throws:
org.apache.maven.plugin.MojoExecutionException
-