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 booleanbindServicesAdd the option--bind-servicesor not, default false.private java.lang.IntegercompressCompression level of the resources being used, equivalent to:-c, --compress=level.private booleanignoreSigningInformation--ignore-signing-information, default falseprivate java.lang.StringjlinkExecutableThe executable.private java.lang.StringjlinkImageNameThe name of the folder with the resulting runtime image, equivalent to--output <path>private booleanjlinkVerboseTurn on verbose mode, equivalent to:--verbose, default falseprivate java.lang.StringjlinkZipNameWhen set, creates a zip of the resulting runtime image.private java.lang.StringjmodsPathOptional jmodsPath path for local builds.private java.lang.StringlauncherAdd a launcher script, equivalent to:--launcher <name>=<module>[/<mainclass>].private booleannoHeaderFilesRemove theincludesdirectory in the resulting runtime image, equivalent to:--no-header-files, default falseprivate booleannoManPagesRemove themandirectory in the resulting Java runtime image, equivalent to:--no-man-pages, default falseprivate booleanstripDebugStrips debug information out, equivalent to-G, --strip-debug, default falseprivate org.codehaus.plexus.archiver.zip.ZipArchiverzipArchiverThe 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.FilecreateZipArchiveFromImage()voidexecute()-
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 stripDebugStrips debug information out, equivalent to-G, --strip-debug, default false
-
compress
@Parameter(property="javafx.compress", defaultValue="2") private java.lang.Integer compressCompression 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
@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 jlinkImageNameThe 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 jlinkExecutableThe 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 zipArchiverThe 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.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureException
-
createZipArchiveFromImage
private java.io.File createZipArchiveFromImage() throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoExecutionException
-
-