public class DefaultLaunchScript extends Object implements LaunchScript
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}}
.Constructor and Description |
---|
DefaultLaunchScript(File file,
Map<?,?> properties)
Create a new
DefaultLaunchScript instance. |
Modifier and Type | Method and Description |
---|---|
byte[] |
toByteArray()
The content of the launch script as a byte array.
|
public DefaultLaunchScript(File file, Map<?,?> properties) throws IOException
DefaultLaunchScript
instance.file
- the source script file or null
to use the defaultproperties
- an optional set of script properties used for variable expansionIOException
- if the script cannot be loadedpublic byte[] toByteArray()
LaunchScript
toByteArray
in interface LaunchScript
Copyright © 2021 Pivotal Software, Inc.. All rights reserved.