Interface PackageApplicationTask.Launcher
- Enclosing interface:
PackageApplicationTask
Parameters describing an application launcher.
- Since:
- 1.4
- Author:
- Jeremy Kuhn
-
Method Summary
Modifier and TypeMethodDescriptionReturns the application launcher version.Returns the default arguments to pass to the application launcher.Returns the description of the application launcher.Returns the path to the application launcher icon file.Returns the group value of the RPM /.spec file or Section value of DEB control file.Returns the canonical name of the main class executed with the application launcher.Returns the name of the module defining the main class executed with the application launcher.getName()
Returns the name of the application launcher.Returns the VM options to use when executing the application launcher.default boolean
Determines whether unnamed modules should be added when executing the application launcher.default boolean
Determines whether the application launcher should be registered as a background service-type application.default boolean
Determines whether a shortcut must be created when installing the application launcher.default boolean
Determines whether the application launcher should be started in a console to enable console interaction.default boolean
Determines whether a Start Menu shortcut should be added for the application launcher.default boolean
Determines whether a shortcut should be created for the application launcher.
-
Method Details
-
getName
Returns the name of the application launcher.
Defaults to the project's name.
- Returns:
- an optional returning the launcher name or an empty optional
-
getDescription
Returns the description of the application launcher.
- Returns:
- an optional returning the launcher description or an empty optional
-
getModule
Returns the name of the module defining the main class executed with the application launcher.
Defaults to the project's module.
- Returns:
- an optional returning the name of the module defining the main class or an empty optional
-
getMainClass
Returns the canonical name of the main class executed with the application launcher.
If not specified, the task will scan for main classes in the launcher's module and pick the first one it found. Note that this is undeterministic, in case the module defines multiple main classes it is recommended to define main class explicitly.
- Returns:
- an optional returning the canonical name of the main class or an empty optional
-
getVmOptions
Returns the VM options to use when executing the application launcher.
- Returns:
- an optional returning the VM options or an empty optional
-
getArguments
Returns the default arguments to pass to the application launcher.
- Returns:
- an opional returning the arguments or an empty optional
-
getIconPath
Returns the path to the application launcher icon file.
- Returns:
- an optional returnin the path to the icon file or an empty optional
-
getAppVersion
Returns the application launcher version.
- Returns:
- an optional returning the application launcher version or an empty optional
-
isAddUnnamedModules
default boolean isAddUnnamedModules()Determines whether unnamed modules should be added when executing the application launcher.
- Returns:
- true to add unnamed modules, false otherwise
-
isLauncherAsService
default boolean isLauncherAsService()Determines whether the application launcher should be registered as a background service-type application.
- Returns:
- true to create a service-type application launcher, false otherwise
-
isWinConsole
default boolean isWinConsole()Determines whether the application launcher should be started in a console to enable console interaction.
- Returns:
- true to create a console launcher, false otherwise
-
isWinShortcut
default boolean isWinShortcut()Determines whether a shortcut should be created for the application launcher.
- Returns:
- true to create a shortcut, false otherwise
-
isWinMenu
default boolean isWinMenu()Determines whether a Start Menu shortcut should be added for the application launcher.
- Returns:
- true to add a Start Menu shortcut, false otherwise
-
getLinuxAppCategory
Returns the group value of the RPM /.spec file or Section value of DEB control file.
- Returns:
- an optional returning the group value or an empty optional
-
isLinuxShortcut
default boolean isLinuxShortcut()Determines whether a shortcut must be created when installing the application launcher.
- Returns:
- true to create a shortcut, false otherwise
-