Compilation options to be passed to the Groovy compiler.
Type | Name and description |
---|---|
protected boolean |
excludeFromAntProperties(String fieldName) |
GroovyCompileOptions |
fork(Map forkArgs) Convenience method to set GroovyForkOptions with named parameter syntax. |
String |
getEncoding() Tells the source encoding. |
List<String> |
getFileExtensions() Returns the list of acceptable source file extensions. |
GroovyForkOptions |
getForkOptions() Returns options for running the Groovy compiler in a separate process. |
Map<String, Boolean> |
getOptimizationOptions() Returns optimization options for the Groovy compiler. |
File |
getStubDir() Returns the directory where Java stubs for Groovy classes will be stored during Java/Groovy joint compilation. |
boolean |
isFailOnError() Tells whether the compilation task should fail if compile errors occurred. |
boolean |
isFork() Tells whether to run the Groovy compiler in a separate process. |
boolean |
isKeepStubs() Tells whether Java stubs for Groovy classes generated during Java/Groovy joint compilation should be kept after compilation has completed. |
boolean |
isListFiles() Tells whether to print which source files are to be compiled. |
boolean |
isVerbose() Tells whether to turn on verbose output. |
Map<String, Object> |
optionMap() Internal method. |
void |
setEncoding(String encoding) Sets the source encoding. |
void |
setFailOnError(boolean failOnError) Sets whether the compilation task should fail if compile errors occurred. |
void |
setFileExtensions(List<String> fileExtensions) Sets the list of acceptable source file extensions. |
void |
setFork(boolean fork) Sets whether to run the Groovy compiler in a separate process. |
void |
setForkOptions(GroovyForkOptions forkOptions) Sets options for running the Groovy compiler in a separate process. |
void |
setKeepStubs(boolean keepStubs) Sets whether Java stubs for Groovy classes generated during Java/Groovy joint compilation should be kept after compilation has completed. |
void |
setListFiles(boolean listFiles) Sets whether to print which source files are to be compiled. |
void |
setOptimizationOptions(Map<String, Boolean> optimizationOptions) Sets optimization options for the Groovy compiler. |
void |
setStubDir(File stubDir) Sets the directory where Java stubs for Groovy classes will be stored during Java/Groovy joint compilation. |
void |
setVerbose(boolean verbose) Sets whether to turn on verbose output. |
Methods inherited from class | Name |
---|---|
class AbstractOptions |
define, excludeFromAntProperties, getAntPropertyName, getAntPropertyValue, optionMap |
Convenience method to set GroovyForkOptions with named parameter syntax.
Calling this method will set fork
to true
.
Tells the source encoding. Defaults to UTF-8
.
Returns the list of acceptable source file extensions. Only takes effect when compiling against
Groovy 1.7 or higher. Defaults to ImmutableList.of("java", "groovy")
.
Returns options for running the Groovy compiler in a separate process. These options only take effect
if fork
is set to true
.
Returns optimization options for the Groovy compiler. Allowed values for an option are true
and false
.
Only takes effect when compiling against Groovy 1.8 or higher.
Known options are:
Returns the directory where Java stubs for Groovy classes will be stored during Java/Groovy joint
compilation. Defaults to null
, in which case a temporary directory will be used.
Tells whether the compilation task should fail if compile errors occurred. Defaults to true
.
Tells whether to run the Groovy compiler in a separate process. Defaults to true
.
Tells whether Java stubs for Groovy classes generated during Java/Groovy joint compilation
should be kept after compilation has completed. Useful for joint compilation debugging purposes.
Defaults to false
.
Tells whether to print which source files are to be compiled. Defaults to false
.
Tells whether to turn on verbose output. Defaults to false
.
Sets the source encoding. Defaults to UTF-8
.
Sets whether the compilation task should fail if compile errors occurred. Defaults to true
.
Sets the list of acceptable source file extensions. Only takes effect when compiling against
Groovy 1.7 or higher. Defaults to ImmutableList.of("java", "groovy")
.
Sets whether to run the Groovy compiler in a separate process. Defaults to true
.
Sets options for running the Groovy compiler in a separate process. These options only take effect
if fork
is set to true
.
Sets whether Java stubs for Groovy classes generated during Java/Groovy joint compilation
should be kept after compilation has completed. Useful for joint compilation debugging purposes.
Defaults to false
.
Sets whether to print which source files are to be compiled. Defaults to false
.
Sets optimization options for the Groovy compiler. Allowed values for an option are true
and false
.
Only takes effect when compiling against Groovy 1.8 or higher.
Sets the directory where Java stubs for Groovy classes will be stored during Java/Groovy joint
compilation. Defaults to null
, in which case a temporary directory will be used.
Sets whether to turn on verbose output. Defaults to false
.