Comparable<Task>, org.gradle.api.internal.DynamicObjectAware, org.gradle.api.internal.IConventionAware, org.gradle.api.internal.TaskInternal, ExtensionAware, Task, PatternFilterable, org.gradle.util.Configurable<Task>AbstractScalaCompile, GroovyCompile, JavaCompilepublic abstract class AbstractCompile extends SourceTask
Task.NamersourceTASK_ACTION, TASK_DEPENDS_ON, TASK_DESCRIPTION, TASK_GROUP, TASK_NAME, TASK_OVERWRITE, TASK_TYPE| Constructor | Description |
|---|---|
AbstractCompile() |
| Modifier and Type | Method | Description |
|---|---|---|
protected abstract void |
compile() |
|
FileCollection |
getClasspath() |
Returns the classpath to use to compile the source files.
|
File |
getDestinationDir() |
Returns the directory to generate the
.class files into. |
String |
getSourceCompatibility() |
Returns the Java language level to use to compile the source files.
|
String |
getTargetCompatibility() |
Returns the target JVM to generate the
.class files for. |
void |
setClasspath(FileCollection configuration) |
Sets the classpath to use to compile the source files.
|
void |
setDestinationDir(File destinationDir) |
Sets the directory to generate the
.class files into. |
void |
setSourceCompatibility(String sourceCompatibility) |
Sets the Java language level to use to compile the source files.
|
void |
setTargetCompatibility(String targetCompatibility) |
Sets the target JVM to generate the
.class files for. |
addValidator, appendParallelSafeAction, compareTo, configure, deleteAllActions, dependsOn, dependsOnTaskDidWork, doFirst, doFirst, doLast, doLast, execute, finalizedBy, getActionClassLoaders, getActions, getAnt, getAsDynamicObject, getConvention, getDependsOn, getDescription, getDidWork, getEnabled, getExecuter, getExtensions, getFinalizedBy, getGroup, getIdentityPath, getImpliesSubProjects, getInputs, getLogger, getLogging, getMustRunAfter, getName, getOnlyIf, getOutputs, getPath, getProject, getServices, getShouldRunAfter, getStandardOutputCapture, getState, getTaskActions, getTaskDependencies, getTemporaryDir, getTemporaryDirFactory, getValidators, hasProperty, injectIntoNewInstance, isEnabled, isHasCustomActions, leftShift, mustRunAfter, onlyIf, onlyIf, prependParallelSafeAction, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setExecuter, setFinalizedBy, setGroup, setImpliesSubProjects, setMustRunAfter, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, toStringconventionMapping, conventionMapping, getConventionMappingclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitexclude, exclude, exclude, exclude, getExcludes, getIncludes, getPatternSetFactory, getSource, include, include, include, include, setExcludes, setIncludes, setSource, sourceprotected abstract void compile()
@Classpath public FileCollection getClasspath()
public void setClasspath(FileCollection configuration)
configuration - The classpath. Must not be null, but may be empty.@OutputDirectory public File getDestinationDir()
.class files into.public void setDestinationDir(File destinationDir)
.class files into.destinationDir - The destination directory. Must not be null.@Input public String getSourceCompatibility()
public void setSourceCompatibility(String sourceCompatibility)
sourceCompatibility - The source language level. Must not be null.@Input public String getTargetCompatibility()
.class files for.public void setTargetCompatibility(String targetCompatibility)
.class files for.targetCompatibility - The target JVM. Must not be null.