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
, JavaCompile
public abstract class AbstractCompile extends SourceTask
Task.Namer
TASK_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 |
---|---|---|
FileCollection |
getClasspath() |
Returns the classpath to use to compile the source files.
|
File |
getDestinationDir() |
Returns the directory to generate the
.class files into. |
DirectoryProperty |
getDestinationDirectory() |
Returns the directory property that represents 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, source
conventionMapping, conventionMapping, getConventionMapping
appendParallelSafeAction, 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, getRequiredServices, getServices, getSharedResources, 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, usesService
@Classpath public FileCollection getClasspath()
public void setClasspath(FileCollection configuration)
configuration
- The classpath. Must not be null, but may be empty.@Incubating @OutputDirectory public DirectoryProperty getDestinationDirectory()
.class
files into.@ReplacedBy("destinationDirectory") 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.