Package ru.akman.maven.plugins.jpackage
Class Launcher
java.lang.Object
ru.akman.maven.plugins.jpackage.Launcher
Additional launcher.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet launcher command (script) version.Get command (script) arguments.getFile()
Get launcher properties file.getIcon()
Get launcher command (script) icon.Get Java runtime options.Get main class name.Get main jar filename.Get main module name.getName()
Get command (script) name.getProperties
(Charset charset) Get the launcher properties.boolean
Is enabled creating a console launcher.void
setAppVersion
(String appversion) Set launcher command (script) version.void
setArguments
(String arguments) Set command (script) arguments.void
Set launcher properties file.void
Set launcher command (script) icon.void
setJavaOptions
(String javaoptions) Set Java runtime options.void
setMainClass
(String mainclass) Set main class name.void
setMainJar
(String mainjar) Set main jar filename.void
Set main module name.void
Set command (script) name.void
setWinConsole
(String winconsole) Enable or disable creating a console launcher.
-
Constructor Details
-
Launcher
public Launcher()
-
-
Method Details
-
getName
Get command (script) name.- Returns:
- the command (script) name without extension
-
setName
Set command (script) name.- Parameters:
name
- the name of command (script)
-
getModule
Get main module name.- Returns:
- the main module name
-
setModule
Set main module name.- Parameters:
module
- the name of main module
-
getMainJar
Get main jar filename.- Returns:
- the main jar filename
-
setMainJar
Set main jar filename.- Parameters:
mainjar
- the main jar filename
-
getMainClass
Get main class name.- Returns:
- the main class name
-
setMainClass
Set main class name.- Parameters:
mainclass
- the name of main class
-
getArguments
Get command (script) arguments.- Returns:
- the command (script) arguments
-
setArguments
Set command (script) arguments.- Parameters:
arguments
- the command (script) arguments
-
getJavaOptions
Get Java runtime options.- Returns:
- the Java runtime options
-
setJavaOptions
Set Java runtime options.- Parameters:
javaoptions
- Java runtime options
-
getAppVersion
Get launcher command (script) version.- Returns:
- the launcher command (script) version
-
setAppVersion
Set launcher command (script) version.- Parameters:
appversion
- Launcher command (script) version.
-
getIcon
Get launcher command (script) icon.- Returns:
- the launcher command (script) icon
-
setIcon
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
Enable or disable creating a console launcher.- Parameters:
winconsole
- is creating a console launcher enabled
-
getFile
Get launcher properties file.- Returns:
- the launcher properties file
-
setFile
Set launcher properties file.- Parameters:
file
- Launcher properties file.
-
getProperties
Get the launcher properties.- Parameters:
charset
- The charset using to read properties file.- Returns:
- the launcher properties
- Throws:
IOException
- if IO errors occured
-