Class LaunchScriptConfiguration

java.lang.Object
org.springframework.boot.gradle.tasks.bundling.LaunchScriptConfiguration
All Implemented Interfaces:
Serializable

public class LaunchScriptConfiguration extends Object implements Serializable
Encapsulates the configuration of the launch script for an executable jar or war.
Since:
2.0.0
Author:
Andy Wilkinson
See Also:
  • Constructor Details

    • LaunchScriptConfiguration

      public LaunchScriptConfiguration()
  • Method Details

    • getProperties

      @Input public Map<String,String> getProperties()
      Returns the properties that are applied to the launch script when it's being including in the executable archive.
      Returns:
      the properties
    • properties

      public 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.
      Parameters:
      properties - the properties
    • getScript

      Returns the script File that will be included in the executable archive. When null, the default launch script will be used.
      Returns:
      the script file
    • setScript

      public void setScript(File script)
      Sets the script File that will be included in the executable archive. When null, the default launch script will be used.
      Parameters:
      script - the script file