Groovy Documentation

org.gradle.api.tasks.compile
[Groovy] Class GroovyCompileOptions

java.lang.Object
  org.gradle.api.tasks.compile.AbstractOptions
      org.gradle.api.tasks.compile.GroovyCompileOptions

class GroovyCompileOptions
extends AbstractOptions

Compilation options to be passed to the Groovy compiler.

Authors:
Hans Dockter


Property Summary
java.lang.String encoding

The source encoding.

boolean failOnError

Tells whether the compilation task should fail if compile errors occurred.

boolean fork

Tells whether to run the Groovy compiler in a separate process.

GroovyForkOptions forkOptions

Options for running the Groovy compiler in a separate process.

boolean includeJavaRuntime

Tells whether the Java runtime should be put on the compiler's compile class path.

boolean listFiles

Tells whether to print which source files are to be compiled.

boolean stacktrace

Tells whether to print a stack trace when the compiler hits a problem (like a compile error).

boolean verbose

Tells whether to turn on verbose output.

 
Method Summary
java.util.List excludedFieldsFromOptionMap()

java.util.Map fieldName2AntMap()

GroovyCompileOptions fork(java.util.Map forkArgs)

Shortcut for setting both fork and forkOptions.

java.util.Map optionMap()

 
Methods inherited from class AbstractOptions
addValueToMapIfNotNull, define, excludedFieldsFromOptionMap, fieldName2AntMap, fieldValue2AntMap, isOptionField, optionMap
 
Methods inherited from class java.lang.Object
java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int), 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

encoding

@Input
java.lang.String encoding
The source encoding. Defaults to UTF-8.


failOnError

boolean failOnError
Tells whether the compilation task should fail if compile errors occurred. Defaults to true.


fork

boolean fork
Tells whether to run the Groovy compiler in a separate process. Defaults to true.


forkOptions

GroovyForkOptions forkOptions
Options for running the Groovy compiler in a separate process. These options only take effect if fork is set to true.


includeJavaRuntime

@Input
boolean includeJavaRuntime
Tells whether the Java runtime should be put on the compiler's compile class path. Defaults to false.


listFiles

boolean listFiles
Tells whether to print which source files are to be compiled. Defaults to false.


stacktrace

boolean stacktrace
Tells whether to print a stack trace when the compiler hits a problem (like a compile error). Defaults to false.


verbose

boolean verbose
Tells whether to turn on verbose output. Defaults to false.


 
Method Detail

excludedFieldsFromOptionMap

java.util.List excludedFieldsFromOptionMap()


fieldName2AntMap

java.util.Map fieldName2AntMap()


fork

GroovyCompileOptions fork(java.util.Map forkArgs)
Shortcut for setting both fork and forkOptions.
Parameters:
forkArgs - fork options in map notation


optionMap

java.util.Map optionMap()


 

Groovy Documentation