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
Fields Modifier and Type Field Description private boolean
bindServices
Add the option--bind-services
or not, default false.private java.lang.Integer
compress
Compression level of the resources being used, equivalent to:-c, --compress=level
.private boolean
ignoreSigningInformation
--ignore-signing-information
, default falseprivate java.lang.String
jlinkExecutable
The executable.private java.lang.String
jlinkImageName
The name of the folder with the resulting runtime image, equivalent to--output <path>
private boolean
jlinkVerbose
Turn on verbose mode, equivalent to:--verbose
, default falseprivate java.lang.String
jlinkZipName
When set, creates a zip of the resulting runtime image.private java.lang.String
jmodsPath
Optional jmodsPath path for local builds.private java.lang.String
launcher
Add a launcher script, equivalent to:--launcher <name>=<module>[/<mainclass>]
.private boolean
noHeaderFiles
Remove theincludes
directory in the resulting runtime image, equivalent to:--no-header-files
, default falseprivate boolean
noManPages
Remove theman
directory in the resulting Java runtime image, equivalent to:--no-man-pages
, default falseprivate boolean
stripDebug
Strips debug information out, equivalent to-G, --strip-debug
, default falseprivate org.codehaus.plexus.archiver.zip.ZipArchiver
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
-
-
Constructor Summary
Constructors Constructor Description JavaFXJLinkMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private java.util.List<java.lang.String>
createCommandArguments()
private java.io.File
createZipArchiveFromImage()
void
execute()
-
Methods inherited from class org.openjfx.JavaFXBaseMojo
executeCommandLine, executeCommandLine, getExecutablePath, getParent, handleSystemEnvVariables, handleWorkingDirectory, isMavenUsingJava8, isTargetUsingJava8, preparePaths
-
-
-
-
Field Detail
-
stripDebug
@Parameter(property="javafx.stripDebug", defaultValue="false") private boolean stripDebug
Strips debug information out, equivalent to-G, --strip-debug
, default false
-
compress
@Parameter(property="javafx.compress", defaultValue="2") private java.lang.Integer 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 noHeaderFiles
Remove theincludes
directory in the resulting runtime image, equivalent to:--no-header-files
, default false
-
noManPages
@Parameter(property="javafx.noManPages", defaultValue="false") private boolean noManPages
Remove theman
directory in the resulting Java runtime image, equivalent to:--no-man-pages
, default false
-
bindServices
@Parameter(property="javafx.bindServices", defaultValue="false") private boolean bindServices
Add 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 jlinkVerbose
Turn on verbose mode, equivalent to:--verbose
, default false
-
launcher
@Parameter(property="javafx.launcher") private java.lang.String launcher
Add a launcher script, equivalent to:--launcher <name>=<module>[/<mainclass>]
.
-
jlinkImageName
@Parameter(property="javafx.jlinkImageName", defaultValue="image") private java.lang.String jlinkImageName
The name of the folder with the resulting runtime image, equivalent to--output <path>
-
jlinkZipName
@Parameter(property="javafx.jlinkZipName") private java.lang.String jlinkZipName
When set, creates a zip of the resulting runtime image.
-
jlinkExecutable
@Parameter(property="javafx.jlinkExecutable", defaultValue="jlink") private java.lang.String 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
@Parameter(property="javafx.jmodsPath") private java.lang.String 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 zipArchiver
The JAR archiver needed for archiving the environments.
-
-
Method Detail
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
-
createCommandArguments
private java.util.List<java.lang.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
private java.io.File createZipArchiveFromImage() throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
-
-