|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.gradle.api.tasks.compile.AbstractOptions org.gradle.api.tasks.compile.CompileOptions
public class CompileOptions extends AbstractOptions
Main options for Java compilation.
Method Summary | |
---|---|
CompileOptions
|
debug(Map debugArgs)
Convenience method to set DebugOptions with named parameter syntax. |
CompileOptions
|
depend(Map dependArgs)
Convenience method to set DependOptions with named parameter syntax. |
protected boolean
|
excludeFromAntProperties(String fieldName)
|
CompileOptions
|
fork(Map forkArgs)
Convenience method to set ForkOptions with named parameter syntax. |
protected String
|
getAntPropertyName(String fieldName)
|
protected Object
|
getAntPropertyValue(String fieldName, Object value)
|
String
|
getBootClasspath()
Returns the bootstrap classpath to be used for the compiler process. |
String
|
getCompiler()
Returns the compiler to be used. |
List
|
getCompilerArgs()
Returns any additional arguments to be passed to the compiler. |
boolean
|
getDebug()
Deprecated. |
DebugOptions
|
getDebugOptions()
Returns options for generating debugging information. |
DependOptions
|
getDependOptions()
Returns options for using the Ant |
String
|
getEncoding()
Returns the character encoding to be used when reading source files. |
String
|
getExtensionDirs()
Returns the extension dirs to be used for the compiler process. |
boolean
|
getFailOnError()
Deprecated. |
ForkOptions
|
getForkOptions()
Returns options for running the compiler in a child process. |
boolean
|
getIncludeJavaRuntime()
Tells whether the Java runtime should be put on the compile class path. |
boolean
|
getOptimize()
Tells whether to produce optimized byte code. |
boolean
|
isDebug()
Tells whether to include debugging information in the generated class files. |
boolean
|
isDeprecation()
Tells whether to log details of usage of deprecated members or classes. |
boolean
|
isFailOnError()
Tells whether to fail the build when compilation fails. |
boolean
|
isFork()
Tells whether to run the compiler in its own process. |
boolean
|
isIncludeJavaRuntime()
Tells whether the Java runtime should be put on the compile class path. |
boolean
|
isIncremental()
informs whether to use experimental incremental compilation feature. |
boolean
|
isListFiles()
Tells whether to log the files to be compiled. |
boolean
|
isOptimize()
Tells whether to produce optimized byte code. |
boolean
|
isUseAnt()
Tells whether to use the Ant javac task over Gradle's own Java compiler integration. |
boolean
|
isUseDepend()
Tells whether to use the Ant |
boolean
|
isVerbose()
Tells whether to produce verbose output. |
boolean
|
isWarnings()
Tells whether to log warning messages. |
Map
|
optionMap()
Configure the java compilation to be incremental (e.g. compiles only those java classes that were changed or that are dependencies to the changed classes). |
void
|
setBootClasspath(String bootClasspath)
Sets the bootstrap classpath to be used for the compiler process. |
void
|
setCompiler(String compiler)
Sets the compiler to be used. |
void
|
setCompilerArgs(List compilerArgs)
Sets any additional arguments to be passed to the compiler. |
void
|
setDebug(boolean debug)
Sets whether to include debugging information in the generated class files. |
void
|
setDebugOptions(DebugOptions debugOptions)
Sets options for generating debugging information. |
void
|
setDependOptions(DependOptions dependOptions)
Sets options for using the Ant |
void
|
setDeprecation(boolean deprecation)
Sets whether to log details of usage of deprecated members or classes. |
void
|
setEncoding(String encoding)
Sets the character encoding to be used when reading source files. |
void
|
setExtensionDirs(String extensionDirs)
Sets the extension dirs to be used for the compiler process. |
void
|
setFailOnError(boolean failOnError)
Sets whether to fail the build when compilation fails. |
void
|
setFork(boolean fork)
Sets whether to run the compiler in its own process. |
void
|
setForkOptions(ForkOptions forkOptions)
Sets options for running the compiler in a child process. |
void
|
setIncludeJavaRuntime(boolean includeJavaRuntime)
Sets whether the Java runtime should be put on the compile class path. |
CompileOptions
|
setIncremental(boolean incremental)
|
void
|
setListFiles(boolean listFiles)
Sets whether to log the files to be compiled. |
void
|
setOptimize(boolean optimize)
Sets whether to produce optimized byte code. |
void
|
setUseAnt(boolean useAnt)
Sets whether to use the Ant javac task over Gradle's own Java compiler integration. |
void
|
setUseDepend(boolean useDepend)
Sets whether to use the Ant |
void
|
setVerbose(boolean verbose)
Sets whether to produce verbose output. |
void
|
setWarnings(boolean warnings)
Sets whether to log warning messages. |
Methods inherited from class AbstractOptions | |
---|---|
define, excludeFromAntProperties, getAntPropertyName, getAntPropertyValue, optionMap |
Method Detail |
---|
public CompileOptions debug(Map debugArgs)
public CompileOptions depend(Map dependArgs)
@Override protected boolean excludeFromAntProperties(String fieldName)
public CompileOptions fork(Map forkArgs)
@Override protected String getAntPropertyName(String fieldName)
@Override protected Object getAntPropertyValue(String fieldName, Object value)
@Input @Optional public String getBootClasspath()
@Deprecated @Input @Optional public String getCompiler()
@Input public List getCompilerArgs()
@Deprecated public boolean getDebug()
@Nested public DebugOptions getDebugOptions()
public DependOptions getDependOptions()
@Input @Optional public String getEncoding()
@Input @Optional public String getExtensionDirs()
@Deprecated public boolean getFailOnError()
@Nested public ForkOptions getForkOptions()
@Input @Deprecated public boolean getIncludeJavaRuntime()
@Input @Deprecated public boolean getOptimize()
@Input public boolean isDebug()
public boolean isDeprecation()
@Input public boolean isFailOnError()
public boolean isFork()
@Deprecated public boolean isIncludeJavaRuntime()
@Incubating public boolean isIncremental()
public boolean isListFiles()
@Deprecated public boolean isOptimize()
@Deprecated public boolean isUseAnt()
public boolean isUseDepend()
public boolean isVerbose()
public boolean isWarnings()
public Map optionMap()
public void setBootClasspath(String bootClasspath)
@Deprecated public void setCompiler(String compiler)
public void setCompilerArgs(List compilerArgs)
public void setDebug(boolean debug)
public void setDebugOptions(DebugOptions debugOptions)
public void setDependOptions(DependOptions dependOptions)
public void setDeprecation(boolean deprecation)
public void setEncoding(String encoding)
public void setExtensionDirs(String extensionDirs)
public void setFailOnError(boolean failOnError)
public void setFork(boolean fork)
public void setForkOptions(ForkOptions forkOptions)
@Deprecated public void setIncludeJavaRuntime(boolean includeJavaRuntime)
@Incubating /** * Configure the java compilation to be incremental (e.g. compiles only those java classes that were changed or that are dependencies to the changed classes). * The feature is incubating and does not yet satisfies all compilation scenarios. */ public CompileOptions setIncremental(boolean incremental)
public void setListFiles(boolean listFiles)
@Deprecated public void setOptimize(boolean optimize)
@Deprecated public void setUseAnt(boolean useAnt)
public void setUseDepend(boolean useDepend)
public void setVerbose(boolean verbose)
public void setWarnings(boolean warnings)
Gradle API 1.12