- All Superinterfaces:
Comparable<Task>, ExtensionAware, Named
- All Known Subinterfaces:
ObjectFilesToBinary
- All Known Implementing Classes:
AbstractArchiveTask, AbstractCodeQualityTask, AbstractCompile, AbstractConfigurationReportTask, AbstractCopyTask, AbstractDependencyReportTask, AbstractExecTask, AbstractLinkTask, AbstractNativeCompileTask, AbstractNativePCHCompileTask, AbstractNativeSourceCompileTask, AbstractProjectBasedReportTask, AbstractPublishToMaven, AbstractReportTask, AbstractScalaCompile, org.gradle.api.internal.AbstractTask, AbstractTestTask, AntlrTask, AntTarget, ArtifactTransformsReportTask, Assemble, BuildEnvironmentReportTask, CCompile, Checkstyle, CodeNarc, ComponentReport, ConventionReportTask, org.gradle.api.internal.ConventionTask, Copy, CppCompile, CppPreCompiledHeaderCompile, CPreCompiledHeaderCompile, CreateStartScripts, CreateStartScripts, CreateStaticLibrary, DefaultTask, Delete, DependencyInsightReportTask, DependencyReportTask, DependentComponentsReport, Ear, Exec, ExtractSymbols, GenerateBuildDashboard, GenerateCUnitLauncher, GenerateEclipseClasspath, GenerateEclipseJdt, GenerateEclipseProject, GenerateEclipseWtpComponent, GenerateEclipseWtpFacet, GenerateFiltersFileTask, GenerateIdeaModule, GenerateIdeaProject, GenerateIdeaWorkspace, GenerateIvyDescriptor, GenerateMavenPom, GenerateModuleMetadata, GeneratePluginDescriptors, GenerateProjectFileTask, GenerateSchemeFileTask, GenerateSolutionFileTask, GenerateSwiftPackageManagerManifest, GenerateWorkspaceSettingsFileTask, GenerateXcodeProjectFileTask, GenerateXcodeWorkspaceFileTask, GeneratorTask, GradleBuild, GroovyCompile, Groovydoc, HtmlDependencyReportTask, InitBuild, InstallExecutable, InstallXCTestBundle, JacocoBase, JacocoCoverageVerification, JacocoReport, JacocoReportBase, Jar, Jar, JavaCompile, Javadoc, JavaExec, LinkExecutable, LinkMachOBundle, LinkSharedLibrary, ModelReport, ObjectiveCCompile, ObjectiveCppCompile, ObjectiveCppPreCompiledHeaderCompile, ObjectiveCPreCompiledHeaderCompile, OutgoingVariantsReportTask, PluginUnderTestMetadata, Pmd, PrefixHeaderFileGenerateTask, ProcessResources, ProjectBasedReportTask, ProjectReportTask, PropertiesGeneratorTask, PropertyListGeneratorTask, PropertyReportTask, PublishToIvyRepository, PublishToMavenLocal, PublishToMavenRepository, ResolvableConfigurationsReportTask, RunTestExecutable, ScalaCompile, ScalaDoc, Sign, SourceTask, StripSymbols, SwiftCompile, Sync, Tar, TaskReportTask, Test, TestReport, UnexportMainSymbol, UpdateDaemonJvm, ValidatePlugins, War, WindowsResourceCompile, Wrapper, WriteProperties, XCTest, XmlGeneratorTask, Zip
-
Nested Class Summary
-
Field Summary
Fields
Constructor arguments for the Task
-
Method Summary
Applies the statements of the closure against this task object.
Adds the given dependencies to this task.
Adds the given closure to the beginning of this task's action list.
Adds the given
Actionto the beginning of this task's action list.Adds the given
Actionto the beginning of this task's action list.Adds the given closure to the end of this task's action list.
Adds the given
Actionto the end of this task's action list.Adds the given
Actionto the end of this task's action list.voiddoNotTrackState (String reasonNotToTrackState)Do not track the state of the task.
Adds the given finalizer tasks for this task.
Returns the sequence of
Actionobjects which will be executed by this task, in the order of execution.getAnt()Returns the
AntBuilderfor this task.Returns the dependencies of this task.
Returns the description of this task.
Returns the destroyables of this task.
booleanChecks if the task actually did any work.
booleanReturns if this task is enabled or not.
Returns tasks that finalize this task.
getGroup()Returns the task group which this task belongs to.
Returns the inputs of this task.
Returns the local state of this task.
Returns the logger for this task.
Returns the
LoggingManagerwhich can be used to receive logging and to control the standard output/error capture for this task.Returns tasks that this task must run after.
getName()Returns the name of this task.
Returns the outputs of this task.
getPath()Returns the path of the task, which is a fully qualified name for the task.
Returns the
Projectwhich this task belongs to.Returns tasks that this task should run after.
getState()Returns the execution state of this task.
Returns a
TaskDependencywhich contains all the tasks that this task depends on.Returns a directory which this task can use to write temporary files to.
The timeout of this task.
booleanDetermines if this task has the given property.
Specifies that this task must run after all of the supplied tasks.
voidSpecifies that this task is not compatible with the configuration cache.
voidExecute the task only if the given closure returns true.
voidExecute the task only if the given spec is satisfied.
voidExecute the task only if the given spec is satisfied.
Returns the value of the given property of this task.
voidSets the sequence of
Actionobjects which will be executed by this task.voidSets the dependencies of this task.
voidsetDescription (@Nullable String description)Sets a description for this task.
voidsetDidWork (boolean didWork)Sets whether the task actually did any work.
voidsetEnabled (boolean enabled)Set the enabled state of a task.
voidSpecifies the set of finalizer tasks for this task.
voidSets the task group which this task belongs to.
voidSpecifies the set of tasks that this task must run after.
voidExecute the task only if the given closure returns true.
voidExecute the task only if the given spec is satisfied.
voidExecute the task only if the given spec is satisfied.
voidSets a property of this task.
voidSpecifies the set of tasks that this task should run after.
Specifies that this task should run after all of the supplied tasks.
void
-
Field Details
-
TASK_NAME
-
TASK_DESCRIPTION
-
TASK_GROUP
-
TASK_TYPE
-
TASK_DEPENDS_ON
-
TASK_OVERWRITE
-
TASK_ACTION
-
TASK_CONSTRUCTOR_ARGS
-
-
Method Details
-
getName
-
getProject
-
getActions
-
setActions
-
getTaskDependencies
-
getDependsOn
-
setDependsOn
-
dependsOn
-
onlyIf
-
doNotTrackState
-
notCompatibleWithConfigurationCache
-
onlyIf
-
onlyIf
-
setOnlyIf
-
setOnlyIf
-
setOnlyIf
-
getState
-
setDidWork
-
getDidWork
-
getPath
-
doFirst
-
doFirst
-
doFirst
-
doLast
-
doLast
-
doLast
-
getEnabled
-
setEnabled
-
configure
-
getAnt
-
getLogger
-
getLogging
-
property
-
hasProperty
-
setProperty
-
getDescription
-
setDescription
-
getGroup
-
setGroup
-
getInputs
-
getOutputs
-
getDestroyables
-
getLocalState
-
getTemporaryDir
-
mustRunAfter
-
setMustRunAfter
-
getMustRunAfter
-
finalizedBy
-
setFinalizedBy
-
getFinalizedBy
-
shouldRunAfter
-
setShouldRunAfter
-
getShouldRunAfter
-
getTimeout
-
usesService
-