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.NamerTASK_ACTION, TASK_CONSTRUCTOR_ARGS, 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 |
setDestinationDir(Provider<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. |
exclude, exclude, exclude, exclude, getExcludes, getIncludes, getPatternSetFactory, getSource, include, include, include, include, setExcludes, setIncludes, setSource, setSource, sourceconventionMapping, conventionMapping, getConventionMappingnewInputDirectory, newInputFile, newOutputDirectory, newOutputFileappendParallelSafeAction, compareTo, configure, dependsOn, doFirst, doFirst, doFirst, doLast, doLast, doLast, finalizedBy, getActions, getAnt, getAsDynamicObject, getConvention, getDependsOn, getDescription, getDestroyables, getDidWork, getEnabled, getExtensions, getFinalizedBy, getGroup, getIdentityPath, getImpliesSubProjects, getInputs, getLocalState, getLogger, getLogging, getMustRunAfter, getName, getOnlyIf, getOutputs, getPath, getProject, getServices, getShouldRunAfter, getStandardOutputCapture, getState, getTaskActions, getTaskDependencies, getTaskIdentity, getTemporaryDir, getTemporaryDirFactory, getTimeout, hasProperty, hasTaskActions, injectIntoNewInstance, isEnabled, isHasCustomActions, mustRunAfter, onlyIf, onlyIf, prependParallelSafeAction, property, replaceLogger, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setFinalizedBy, setGroup, setImpliesSubProjects, setMustRunAfter, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, toStringprotected 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.public void setDestinationDir(Provider<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.