|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gradle.api.tasks.compile.AbstractOptions
org.gradle.api.tasks.compile.GroovyCompileOptions
public class GroovyCompileOptions extends AbstractOptions
Compilation options to be passed to the Groovy compiler.
Method Summary | |
---|---|
protected List
|
excludedFieldsFromOptionMap()
Internal method. |
protected Map
|
fieldName2AntMap()
Internal method. |
GroovyCompileOptions
|
fork(Map forkArgs)
Convenience method to set ForkOptions with named parameter syntax. |
String
|
getEncoding()
Tells the source encoding. |
List
|
getFileExtensions()
Returns the list of acceptable source file extensions. |
GroovyForkOptions
|
getForkOptions()
Returns options for running the Groovy compiler in a separate process. |
Map
|
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
|
isIncludeJavaRuntime()
Tells whether the Java runtime should be put on the compile class path. |
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
|
isStacktrace()
Tells whether to print a stack trace when the compiler hits a problem (like a compile error). |
boolean
|
isUseAnt()
Tells whether the groovyc Ant task should be used over Gradle's own Groovy compiler integration. |
boolean
|
isVerbose()
Tells whether to turn on verbose output. |
Map
|
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 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
|
setIncludeJavaRuntime(boolean includeJavaRuntime)
Sets whether the Java runtime should be put on the compile class path. |
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 optimizationOptions)
Sets optimization options for the Groovy compiler. |
void
|
setStacktrace(boolean stacktrace)
Sets whether to print a stack trace when the compiler hits a problem (like a compile error). |
void
|
setStubDir(File stubDir)
Sets the directory where Java stubs for Groovy classes will be stored during Java/Groovy joint compilation. |
void
|
setUseAnt(boolean useAnt)
Sets whether the groovyc Ant task should be used over Gradle's own Groovy compiler integration. |
void
|
setVerbose(boolean verbose)
Sets whether to turn on verbose output. |
Methods inherited from class AbstractOptions | |
---|---|
define, excludedFieldsFromOptionMap, fieldName2AntMap, fieldValue2AntMap, optionMap |
Method Detail |
---|
protected List excludedFieldsFromOptionMap()
protected Map fieldName2AntMap()
public GroovyCompileOptions fork(Map forkArgs)
@Input public String getEncoding()
@Input @Experimental public List getFileExtensions()
public GroovyForkOptions getForkOptions()
public Map getOptimizationOptions()
Known options are:
public File getStubDir()
public boolean isFailOnError()
public boolean isFork()
@Input public boolean isIncludeJavaRuntime()
public boolean isKeepStubs()
public boolean isListFiles()
public boolean isStacktrace()
@Input public boolean isUseAnt()
public boolean isVerbose()
public Map optionMap()
public void setEncoding(String encoding)
public void setFailOnError(boolean failOnError)
@Experimental public void setFileExtensions(List fileExtensions)
public void setFork(boolean fork)
public void setForkOptions(GroovyForkOptions forkOptions)
public void setIncludeJavaRuntime(boolean includeJavaRuntime)
public void setKeepStubs(boolean keepStubs)
public void setListFiles(boolean listFiles)
public void setOptimizationOptions(Map optimizationOptions)
public void setStacktrace(boolean stacktrace)
public void setStubDir(File stubDir)
public void setUseAnt(boolean useAnt)
public void setVerbose(boolean verbose)
Gradle API 1.1-rc-2