public abstract class AbstractCompile extends SourceTask
Task.Namer
source
TASK_ACTION, TASK_DEPENDS_ON, TASK_DESCRIPTION, TASK_GROUP, TASK_NAME, TASK_OVERWRITE, TASK_TYPE
Constructor and Description |
---|
AbstractCompile() |
Modifier and Type | Method and 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. |
exclude, exclude, exclude, exclude, getExcludes, getIncludes, getSource, include, include, include, include, setExcludes, setIncludes, setSource, source
conventionMapping, conventionMapping, getConventionMapping
addValidator, compareTo, configure, deleteAllActions, dependsOn, dependsOnTaskDidWork, doFirst, doFirst, doLast, doLast, execute, executeWithoutThrowingTaskFailure, finalizedBy, getActions, getAnt, getAsDynamicObject, getConvention, getDependsOn, getDescription, getDidWork, getEnabled, getExecuter, getExtensions, getFinalizedBy, getGroup, getInputs, getLogger, getLogging, getMustRunAfter, getName, getOnlyIf, getOutputs, getPath, getProject, getServices, getShouldRunAfter, getStandardOutputCapture, getState, getTaskActions, getTaskDependencies, getTemporaryDir, getTemporaryDirFactory, getValidators, hasProperty, injectIntoNewInstance, isEnabled, leftShift, mustRunAfter, onlyIf, onlyIf, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setExecuter, setFinalizedBy, setGroup, setMustRunAfter, setName, setOnlyIf, setOnlyIf, setProject, setProperty, setShouldRunAfter, shouldRunAfter, toString
protected abstract void compile()
@InputFiles 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.