Class LaunchScriptConfiguration
java.lang.Object
org.springframework.boot.gradle.tasks.bundling.LaunchScriptConfiguration
- All Implemented Interfaces:
Serializable
Encapsulates the configuration of the launch script for an executable jar or war.
- Since:
- 2.0.0
- Author:
- Andy Wilkinson
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the properties that are applied to the launch script when it's being including in the executable archive.Returns the scriptFile
that will be included in the executable archive.void
properties
(Map<String, String> properties) Sets the properties that are applied to the launch script when it's being including in the executable archive.void
Sets the scriptFile
that will be included in the executable archive.
-
Constructor Details
-
LaunchScriptConfiguration
public LaunchScriptConfiguration()
-
-
Method Details
-
getProperties
Returns the properties that are applied to the launch script when it's being including in the executable archive.- Returns:
- the properties
-
properties
Sets the properties that are applied to the launch script when it's being including in the executable archive.- Parameters:
properties
- the properties
-
getScript
Returns the scriptFile
that will be included in the executable archive. Whennull
, the default launch script will be used.- Returns:
- the script file
-
setScript
Sets the scriptFile
that will be included in the executable archive. Whennull
, the default launch script will be used.- Parameters:
script
- the script file
-