Class DefaultLaunchScript
java.lang.Object
org.springframework.boot.loader.tools.DefaultLaunchScript
- All Implemented Interfaces:
- LaunchScript
Default implementation of 
LaunchScript. Provides the default Spring Boot launch
 script or can load a specific script File. Also support mustache style template
 expansion of the form {{name:default}}.- Since:
- 1.3.0
- 
Constructor SummaryConstructorsConstructorDescriptionDefaultLaunchScript(File file, Map<?, ?> properties) Create a newDefaultLaunchScriptinstance.
- 
Method SummaryModifier and TypeMethodDescriptionbyte[]The content of the launch script as a byte array.
- 
Constructor Details- 
DefaultLaunchScriptCreate a newDefaultLaunchScriptinstance.- Parameters:
- file- the source script file or- nullto use the default
- properties- an optional set of script properties used for variable expansion
- Throws:
- IOException- if the script cannot be loaded
 
 
- 
- 
Method Details- 
toByteArraypublic byte[] toByteArray()Description copied from interface:LaunchScriptThe content of the launch script as a byte array.- Specified by:
- toByteArrayin interface- LaunchScript
- Returns:
- the script bytes
 
 
-