Groovy Documentation

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

java.lang.Object
  org.gradle.api.internal.ConventionTask
      com.cloudbees.clickstack.tasks.CreateSetupScripts

class CreateSetupScripts
extends ConventionTask

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 applicationName

The application's name.

FileCollection classpath

The class path for the application.

java.lang.Iterable defaultJvmOpts

The application's default JVM options.

java.lang.String exitEnvironmentVar

java.lang.String mainClassName

The application's main class.

java.lang.String optsEnvironmentVar

java.io.File outputDir

The directory to write the scripts into.

java.lang.String scriptName

 
Method Summary
void generate()

java.lang.String getExitEnvironmentVar()

java.lang.String getOptsEnvironmentVar()

Returns the name of the application's OPTS environment variable.

java.io.File getUnixScript()

java.io.File getWindowsScript()

 

Property Detail

applicationName

@Input
java.lang.String applicationName
The application's name.


classpath

@InputFiles
FileCollection classpath
The class path for the application.


defaultJvmOpts

@Input
@Optional
java.lang.Iterable defaultJvmOpts
The application's default JVM options.


exitEnvironmentVar

java.lang.String exitEnvironmentVar


mainClassName

@Input
java.lang.String mainClassName
The application's main class.


optsEnvironmentVar

java.lang.String optsEnvironmentVar


outputDir

java.io.File outputDir
The directory to write the scripts into.


scriptName

java.lang.String scriptName


 
Method Detail

generate

@TaskAction
void generate()


getExitEnvironmentVar

@Input
java.lang.String getExitEnvironmentVar()


getOptsEnvironmentVar

@Input
java.lang.String getOptsEnvironmentVar()
Returns the name of the application's OPTS environment variable.


getUnixScript

@OutputFile
java.io.File getUnixScript()


getWindowsScript

@OutputFile
java.io.File getWindowsScript()


 

Groovy Documentation