api / org.gradle.jvm.application.scripts / ScriptGenerator

ScriptGenerator

@Incubating interface ScriptGenerator

Generates a script to start a JVM application.

See Also
TemplateBasedScriptGenerator

Functions

generateScript

abstract fun generateScript(details: JavaAppStartScriptGenerationDetails, destination: Writer): Unit

Generate the script.

Implementations should not close the given writer. It is the responsibility of the caller to close the stream.

Inheritors

TemplateBasedScriptGenerator

interface TemplateBasedScriptGenerator : ScriptGenerator

Interface for generating scripts with the provided details based on a provided template.