Class JPackageGenerator


  • public class JPackageGenerator
    extends org.tentackle.maven.AbstractGenerator
    Generator for the jpackage tool's options and image's update script.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void generateOptions()
      Generates the option files.
      void generateUpdateScript​(java.io.File appImageDir)
      Generates the update script.
      • Methods inherited from class org.tentackle.maven.AbstractGenerator

        createFreemarkerConfiguration, getLogger, getTemplateDirectory, setLogger, setTemplateDirectory
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JPackageGenerator

        public JPackageGenerator​(JPackageMojo mojo,
                                 JLinkResolver.Result result)
        Creates the generator.
        Parameters:
        mojo - the jlink mojo
        result - the resolver results
    • Method Detail

      • generateOptions

        public void generateOptions()
                             throws org.apache.maven.plugin.MojoExecutionException
        Generates the option files.
        Throws:
        org.apache.maven.plugin.MojoExecutionException - if I/O or template error
      • generateUpdateScript

        public void generateUpdateScript​(java.io.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