Groovy Documentation

com.cloudbees.clickstack.tasks
[Groovy] Class SetupScriptGenerator

java.lang.Object
  com.cloudbees.clickstack.tasks.SetupScriptGenerator

class SetupScriptGenerator

A org.gradle.api.Task for creating OS dependent setup scripts.

Inspired by Gradle Application Plugin.

Authors:
Cyrille Le Clerc


Property Summary
java.lang.String appNameSystemProperty

This system property to use to pass the script name to the application.

java.lang.String applicationName

The display name of the application

java.lang.Iterable classpath

The classpath, relative to the application home directory.

java.lang.Iterable defaultJvmOpts

java.lang.String exitEnvironmentVar

The environment variable to use to control exit value (windows only)

java.lang.String mainClassName

java.lang.String optsEnvironmentVar

The environment variable to use to provide additional options to the JVM

java.lang.String scriptRelPath

The path of the script, relative to the application home directory.

java.lang.String unixJavaHome

java.lang.String windowsJavaHome

 
Method Summary
void generateUnixScript(java.io.File unixScript)

java.lang.String generateUnixScriptContent()

void generateWindowsScript(java.io.File windowsScript)

java.lang.String generateWindowsScriptContent()

void writeToFile(java.lang.String scriptContent, java.io.File scriptFile)

 
Methods inherited from class java.lang.Object
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()
 

Property Detail

appNameSystemProperty

java.lang.String appNameSystemProperty
This system property to use to pass the script name to the application. May be null.


applicationName

java.lang.String applicationName
The display name of the application


classpath

java.lang.Iterable classpath
The classpath, relative to the application home directory.


defaultJvmOpts

java.lang.Iterable defaultJvmOpts


exitEnvironmentVar

java.lang.String exitEnvironmentVar
The environment variable to use to control exit value (windows only)


mainClassName

java.lang.String mainClassName


optsEnvironmentVar

java.lang.String optsEnvironmentVar
The environment variable to use to provide additional options to the JVM


scriptRelPath

java.lang.String scriptRelPath
The path of the script, relative to the application home directory.


unixJavaHome

java.lang.String unixJavaHome


windowsJavaHome

java.lang.String windowsJavaHome


 
Method Detail

generateUnixScript

void generateUnixScript(java.io.File unixScript)


generateUnixScriptContent

java.lang.String generateUnixScriptContent()


generateWindowsScript

void generateWindowsScript(java.io.File windowsScript)


generateWindowsScriptContent

java.lang.String generateWindowsScriptContent()


writeToFile

void writeToFile(java.lang.String scriptContent, java.io.File scriptFile)


 

Groovy Documentation