Package org.tentackle.maven.plugin.jlink
Class JPackageGenerator
- java.lang.Object
-
- org.tentackle.maven.AbstractGenerator
-
- org.tentackle.maven.plugin.jlink.JPackageGenerator
-
public class JPackageGenerator extends AbstractGenerator
Generator for the jpackage tool's options and image's update script.
-
-
Constructor Summary
Constructors Constructor Description JPackageGenerator(JPackageMojo mojo, JLinkResolver.Result result)Creates the generator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidgenerateOptions()Generates the option files.voidgenerateUpdateScript(File appImageDir)Generates the update script.-
Methods inherited from class org.tentackle.maven.AbstractGenerator
createFreemarkerConfiguration, getLogger, getTemplateDirectory, setLogger, setTemplateDirectory
-
-
-
-
Constructor Detail
-
JPackageGenerator
public JPackageGenerator(JPackageMojo mojo, JLinkResolver.Result result)
Creates the generator.- Parameters:
mojo- the jlink mojoresult- the resolver results
-
-
Method Detail
-
generateOptions
public void generateOptions() throws org.apache.maven.plugin.MojoExecutionExceptionGenerates the option files.- Throws:
org.apache.maven.plugin.MojoExecutionException- if I/O or template error
-
generateUpdateScript
public void generateUpdateScript(File appImageDir) throws org.apache.maven.plugin.MojoExecutionException
Generates the update script.- Parameters:
appImageDir- the application image directory- Throws:
org.apache.maven.plugin.MojoExecutionException- if I/O or template error
-
-