Package rife.bld.operations
Class JpackageOperation
java.lang.Object
rife.bld.operations.AbstractOperation<AbstractToolProviderOperation<T>>
rife.bld.operations.AbstractToolProviderOperation<JpackageOperation>
rife.bld.operations.JpackageOperation
Package self-contained Java applications with the jpackage tool.
- Since:
- 2.1.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final record
Name of launcher, and a path to a Properties file that contains a list of key, value pairs.Nested classes/interfaces inherited from class rife.bld.operations.AbstractToolProviderOperation
AbstractToolProviderOperation.CommandLineTokenizer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddLauncher
(List<JpackageOperation.Launcher> launchers) List of application launchers.addLauncher
(JpackageOperation.Launcher... launchers) List of application launchers.void
execute()
Runs an instance of the tool.Retrieves the list of options for the jpackage tool.jpackageOptions
(Map<String, String> options) Provides a list of options to provide to the jpackage tool.Retrieves the list of application launchers.Methods inherited from class rife.bld.operations.AbstractToolProviderOperation
cmdFiles, cmdFiles, cmdFiles, cmdFiles, cmdFiles, cmdFilesPaths, cmdFilesStrings, toolArgs, toolArgs, toolArgs, toolArgs, toolArgsFromFiles
Methods inherited from class rife.bld.operations.AbstractOperation
executeOnce, executeOnce, silent, silent
-
Constructor Details
-
JpackageOperation
public JpackageOperation()
-
-
Method Details
-
addLauncher
List of application launchers.The main application launcher will be built from the command line options.
Additional alternative launchers can be built using this option, and this option can be used to build multiple additional launchers.
- Parameters:
launchers
- one or morelaunchers
- Returns:
- this operation instance
-
addLauncher
List of application launchers.The main application launcher will be built from the command line options.
Additional alternative launchers can be built using this option, and this option can be used to build multiple additional launchers.
- Parameters:
launchers
- one or morelaunchers
- Returns:
- this operation instance
-
execute
Description copied from class:AbstractToolProviderOperation
Runs an instance of the tool.On success, command line arguments are automatically cleared.
- Overrides:
execute
in classAbstractToolProviderOperation<JpackageOperation>
- Throws:
Exception
- if an error occurred
-
jpackageOptions
Retrieves the list of options for the jpackage tool.This is a modifiable list that can be retrieved and changed.
- Returns:
- the map of jpackage options
-
jpackageOptions
Provides a list of options to provide to the jpackage tool.A copy will be created to allow this list to be independently modifiable.
- Parameters:
options
- the map of jpackage options- Returns:
- this operation instance
-
launchers
Retrieves the list of application launchers.- Returns:
- the list of launchers
-