Package org.tentackle.maven.plugin.jlink
Class DefaultArtifactCreator
- java.lang.Object
-
- org.tentackle.maven.plugin.jlink.DefaultArtifactCreator
-
- All Implemented Interfaces:
ArtifactCreator
public class DefaultArtifactCreator extends java.lang.Object implements ArtifactCreator
Default artifact creator.
-
-
Constructor Summary
Constructors Constructor Description DefaultArtifactCreator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidattachInstallers(JPackageMojo mojo, long minTime)Attaches the installers created by the jpackage goal.voidcreateAndAttachArtifact(JLinkMojo mojo)Creates and attaches the ZIP file created by the jlink goal.
This also provides the option to modify the created jlink directory before zipping it.voidcreateAndAttachArtifact(JPackageMojo mojo, java.io.File appImageDir)Creates and attaches the update ZIP file created by the jpackage goal.
Invoked only if update feature is enabled.voidprocessApplicationImage(JPackageMojo mojo, java.io.File imageDir)Processes the created application image.
-
-
-
Method Detail
-
createAndAttachArtifact
public void createAndAttachArtifact(JLinkMojo mojo) throws org.apache.maven.plugin.MojoExecutionException
Description copied from interface:ArtifactCreatorCreates and attaches the ZIP file created by the jlink goal.
This also provides the option to modify the created jlink directory before zipping it.- Specified by:
createAndAttachArtifactin interfaceArtifactCreator- Parameters:
mojo- the jlink mojo- Throws:
org.apache.maven.plugin.MojoExecutionException- if failed
-
processApplicationImage
public void processApplicationImage(JPackageMojo mojo, java.io.File imageDir) throws org.apache.maven.plugin.MojoExecutionException
Description copied from interface:ArtifactCreatorProcesses the created application image.- Specified by:
processApplicationImagein interfaceArtifactCreator- Parameters:
mojo- the jpackage mojoimageDir- the directory of the application image created by the jpackage tool- Throws:
org.apache.maven.plugin.MojoExecutionException- if failed
-
attachInstallers
public void attachInstallers(JPackageMojo mojo, long minTime) throws org.apache.maven.plugin.MojoExecutionException
Description copied from interface:ArtifactCreatorAttaches the installers created by the jpackage goal.- Specified by:
attachInstallersin interfaceArtifactCreator- Parameters:
mojo- the jpackage mojominTime- the minimum creating time of the artifacts- Throws:
org.apache.maven.plugin.MojoExecutionException- if failed
-
createAndAttachArtifact
public void createAndAttachArtifact(JPackageMojo mojo, java.io.File appImageDir) throws org.apache.maven.plugin.MojoExecutionException
Description copied from interface:ArtifactCreatorCreates and attaches the update ZIP file created by the jpackage goal.
Invoked only if update feature is enabled.- Specified by:
createAndAttachArtifactin interfaceArtifactCreator- Parameters:
mojo- the jpackage mojoappImageDir- the application image directory- Throws:
org.apache.maven.plugin.MojoExecutionException- if failed- See Also:
AbstractJLinkMojo.withUpdater
-
-