docs.gradle.org

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 Action to the beginning of this task's action list.

    Adds the given Action to the beginning of this task's action list.

    Adds the given closure to the end of this task's action list.

    Adds the given Action to the end of this task's action list.

    Adds the given Action to the end of this task's action list.

    void

    doNotTrackState (String reasonNotToTrackState)

    Do not track the state of the task.

    Adds the given finalizer tasks for this task.

    Returns the sequence of Action objects which will be executed by this task, in the order of execution.

    getAnt()

    Returns the AntBuilder for this task.

    Returns the dependencies of this task.

    Returns the description of this task.

    Returns the destroyables of this task.

    boolean

    Checks if the task actually did any work.

    boolean

    Returns if this task is enabled or not.

    Returns tasks that finalize this task.

    getGroup()

    Returns the task group which this task belongs to.

    getInputs()

    Returns the inputs of this task.

    Returns the local state of this task.

    getLogger()

    Returns the logger for this task.

    Returns the LoggingManager which 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 Project which this task belongs to.

    Returns tasks that this task should run after.

    getState()

    Returns the execution state of this task.

    Returns a TaskDependency which 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.

    boolean

    Determines if this task has the given property.

    Specifies that this task must run after all of the supplied tasks.

    void

    Specifies that this task is not compatible with the configuration cache.

    void

    Execute the task only if the given closure returns true.

    void

    Execute the task only if the given spec is satisfied.

    void

    Execute the task only if the given spec is satisfied.

    Returns the value of the given property of this task.

    void

    Sets the sequence of Action objects which will be executed by this task.

    void

    Sets the dependencies of this task.

    void

    setDescription (@Nullable String description)

    Sets a description for this task.

    void

    setDidWork (boolean didWork)

    Sets whether the task actually did any work.

    void

    setEnabled (boolean enabled)

    Set the enabled state of a task.

    void

    Specifies the set of finalizer tasks for this task.

    void

    Sets the task group which this task belongs to.

    void

    Specifies the set of tasks that this task must run after.

    void

    Execute the task only if the given closure returns true.

    void

    Execute the task only if the given spec is satisfied.

    void

    Execute the task only if the given spec is satisfied.

    void

    Sets a property of this task.

    void

    Specifies 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

Read the original on docs.gradle.org ↗