Package org.gradle.api.tasks.compile
Klasse AbstractCompile
java.lang.Object
org.gradle.api.internal.AbstractTask
org.gradle.api.DefaultTask
org.gradle.api.internal.ConventionTask
org.gradle.api.tasks.SourceTask
org.gradle.api.tasks.compile.AbstractCompile
- Alle implementierten Schnittstellen:
Comparable<Task>,org.gradle.api.internal.DynamicObjectAware,org.gradle.api.internal.IConventionAware,org.gradle.api.internal.TaskInternal,Named,ExtensionAware,Task,PatternFilterable,Configurable<Task>
- Bekannte direkte Unterklassen:
AbstractScalaCompile,GroovyCompile,JavaCompile
@DisableCachingByDefault(because="Abstract super-class, not to be instantiated directly")
public abstract class AbstractCompile
extends SourceTask
The base class for all JVM-based language compilation tasks.
-
Verschachtelte Klassen - Übersicht
Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen org.gradle.api.Task
Task.Namer -
Feldübersicht
Von Schnittstelle geerbte Felder org.gradle.api.Task
TASK_ACTION, TASK_CONSTRUCTOR_ARGS, TASK_DEPENDS_ON, TASK_DESCRIPTION, TASK_GROUP, TASK_NAME, TASK_OVERWRITE, TASK_TYPE -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungReturns the classpath to use to compile the source files.Veraltet.Returns the directory property that represents the directory to generate the.classfiles into.Returns the Java language level to use to compile the source files.Returns the target JVM to generate the.classfiles for.voidsetClasspath(FileCollection configuration) Sets the classpath to use to compile the source files.voidsetDestinationDir(File destinationDir) Veraltet.UsegetDestinationDirectory().set() instead.voidsetDestinationDir(Provider<File> destinationDir) Veraltet.UsegetDestinationDirectory().set() instead.voidsetSourceCompatibility(String sourceCompatibility) Sets the Java language level to use to compile the source files.voidsetTargetCompatibility(String targetCompatibility) Sets the target JVM to generate the.classfiles for.Von Klasse geerbte Methoden org.gradle.api.tasks.SourceTask
exclude, exclude, exclude, exclude, getExcludes, getIncludes, getPatternSet, getPatternSetFactory, getSource, include, include, include, include, setExcludes, setIncludes, setSource, setSource, sourceVon Klasse geerbte Methoden org.gradle.api.internal.ConventionTask
conventionMapping, conventionMapping, getConventionMappingVon Klasse geerbte Methoden org.gradle.api.DefaultTask
compareTo, configure, dependsOn, doFirst, doFirst, doFirst, doLast, doLast, doLast, finalizedBy, getActions, getAnt, getDependsOn, getDescription, getDestroyables, getDidWork, getEnabled, getExtensions, getFinalizedBy, getGroup, getInputs, getLocalState, getLogger, getLogging, getMustRunAfter, getName, getOutputs, getPath, getProject, getShouldRunAfter, getState, getTaskDependencies, getTemporaryDir, getTimeout, hasProperty, mustRunAfter, onlyIf, onlyIf, onlyIf, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setFinalizedBy, setGroup, setMustRunAfter, setOnlyIf, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, usesServiceVon Klasse geerbte Methoden org.gradle.api.internal.AbstractTask
acceptServiceReferences, appendParallelSafeAction, doNotTrackState, getAsDynamicObject, getConvention, getIdentityPath, getImpliesSubProjects, getLifecycleDependencies, getOnlyIf, getReasonNotToTrackState, getReasonTaskIsIncompatibleWithConfigurationCache, getRequiredServices, getServices, getSharedResources, getStandardOutputCapture, getTaskActions, getTaskIdentity, getTemporaryDirFactory, hasTaskActions, injectIntoNewInstance, isCompatibleWithConfigurationCache, isEnabled, isHasCustomActions, notCompatibleWithConfigurationCache, prependParallelSafeAction, setImpliesSubProjectsVon Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitVon Schnittstelle geerbte Methoden org.gradle.api.Task
doNotTrackState, getConvention, notCompatibleWithConfigurationCache
-
Konstruktordetails
-
AbstractCompile
public AbstractCompile()
-
-
Methodendetails
-
getClasspath
Returns the classpath to use to compile the source files.- Gibt zurück:
- The classpath.
-
setClasspath
Sets the classpath to use to compile the source files.- Parameter:
configuration- The classpath. Must not be null, but may be empty.
-
getDestinationDirectory
Returns the directory property that represents the directory to generate the.classfiles into.- Gibt zurück:
- The destination directory property.
- Seit:
- 6.1
-
getDestinationDir
Veraltet.UsegetDestinationDirectory()instead. This method will be removed in Gradle 9.0.Returns the directory to generate the.classfiles into.- Gibt zurück:
- The destination directory.
-
setDestinationDir
Veraltet.UsegetDestinationDirectory().set() instead. This method will be removed in Gradle 9.0.Sets the directory to generate the.classfiles into.- Parameter:
destinationDir- The destination directory. Must not be null.
-
setDestinationDir
Veraltet.UsegetDestinationDirectory().set() instead. This method will be removed in Gradle 9.0.Sets the directory to generate the.classfiles into.- Parameter:
destinationDir- The destination directory. Must not be null.- Seit:
- 4.0
-
getSourceCompatibility
Returns the Java language level to use to compile the source files.- Gibt zurück:
- The source language level.
-
setSourceCompatibility
Sets the Java language level to use to compile the source files.- Parameter:
sourceCompatibility- The source language level. Must not be null.
-
getTargetCompatibility
Returns the target JVM to generate the.classfiles for.- Gibt zurück:
- The target JVM.
-
setTargetCompatibility
Sets the target JVM to generate the.classfiles for.- Parameter:
targetCompatibility- The target JVM. Must not be null.
-
getDestinationDirectory()instead.