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
- Author:
- Phillip Webb, Justin Rosenberg
-
Constructor Summary
ConstructorDescriptionDefaultLaunchScript
(File file, Map<?, ?> properties) Create a newDefaultLaunchScript
instance. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
The content of the launch script as a byte array.
-
Constructor Details
-
DefaultLaunchScript
Create a newDefaultLaunchScript
instance.- Parameters:
file
- the source script file ornull
to use the defaultproperties
- an optional set of script properties used for variable expansion- Throws:
IOException
- if the script cannot be loaded
-
-
Method Details
-
toByteArray
public byte[] toByteArray()Description copied from interface:LaunchScript
The content of the launch script as a byte array.- Specified by:
toByteArray
in interfaceLaunchScript
- Returns:
- the script bytes
-