Class Launcher

java.lang.Object
ru.akman.maven.plugins.jpackage.Launcher

public class Launcher extends Object
Additional launcher.
  • Constructor Details

    • Launcher

      public Launcher()
  • Method Details

    • getName

      public String getName()
      Get command (script) name.
      Returns:
      the command (script) name without extension
    • setName

      public void setName(String name)
      Set command (script) name.
      Parameters:
      name - the name of command (script)
    • getModule

      public String getModule()
      Get main module name.
      Returns:
      the main module name
    • setModule

      public void setModule(String module)
      Set main module name.
      Parameters:
      module - the name of main module
    • getMainJar

      public String getMainJar()
      Get main jar filename.
      Returns:
      the main jar filename
    • setMainJar

      public void setMainJar(String mainjar)
      Set main jar filename.
      Parameters:
      mainjar - the main jar filename
    • getMainClass

      public String getMainClass()
      Get main class name.
      Returns:
      the main class name
    • setMainClass

      public void setMainClass(String mainclass)
      Set main class name.
      Parameters:
      mainclass - the name of main class
    • getArguments

      public String getArguments()
      Get command (script) arguments.
      Returns:
      the command (script) arguments
    • setArguments

      public void setArguments(String arguments)
      Set command (script) arguments.
      Parameters:
      arguments - the command (script) arguments
    • getJavaOptions

      public String getJavaOptions()
      Get Java runtime options.
      Returns:
      the Java runtime options
    • setJavaOptions

      public void setJavaOptions(String javaoptions)
      Set Java runtime options.
      Parameters:
      javaoptions - Java runtime options
    • getAppVersion

      public String getAppVersion()
      Get launcher command (script) version.
      Returns:
      the launcher command (script) version
    • setAppVersion

      public void setAppVersion(String appversion)
      Set launcher command (script) version.
      Parameters:
      appversion - Launcher command (script) version.
    • getIcon

      public File getIcon()
      Get launcher command (script) icon.
      Returns:
      the launcher command (script) icon
    • setIcon

      public void setIcon(File icon)
      Set launcher command (script) icon.
      Parameters:
      icon - Launcher command (script) icon.
    • isWinConsole

      public boolean isWinConsole()
      Is enabled creating a console launcher.
      Returns:
      true if creating a console launcher is enabled
    • setWinConsole

      public void setWinConsole(String winconsole)
      Enable or disable creating a console launcher.
      Parameters:
      winconsole - is creating a console launcher enabled
    • getFile

      public File getFile()
      Get launcher properties file.
      Returns:
      the launcher properties file
    • setFile

      public void setFile(File file)
      Set launcher properties file.
      Parameters:
      file - Launcher properties file.
    • getProperties

      public Properties getProperties(Charset charset) throws IOException
      Get the launcher properties.
      Parameters:
      charset - The charset using to read properties file.
      Returns:
      the launcher properties
      Throws:
      IOException - if IO errors occured