Taskconfigure(Closure configureClosure)
Applies the statements of the closure against this task object.
TaskdeleteAllActions()
Removes all the actions of this task.
TaskdependsOn(Object... paths)
Adds the given dependencies to this task.
booleandependsOnTaskDidWork()
Checks if any of the tasks that this task depends on didWork.
TaskdoFirst(Action<? super Task> action)
Adds the given Action to the beginning of this task's action list.
TaskdoFirst(Closure action)
Adds the given closure to the beginning of this task's action list.
TaskdoLast(Action<? super Task> action)
Adds the given Action to the end of this task's action list.
TaskdoLast(Closure action)
Adds the given closure to the end of this task's action list.
TaskfinalizedBy(Object... paths)
Adds the given finalizer tasks for this task.
List<Action<? super Task>>getActions()
Returns the sequence of Action objects which will be executed by this task, in the order of
execution.
AntBuildergetAnt()
Returns the AntBuilder for this task.
ConventiongetConvention()
Returns the Convention object for this task.
Set<Object>getDependsOn()
Returns the dependencies of this task.
StringgetDescription()
Returns the description of this task.
booleangetDidWork()
Checks if the task actually did any work.
booleangetEnabled()
Returns if this task is enabled or not.
TaskDependencygetFinalizedBy()
Returns tasks that finalize this task.
StringgetGroup()
Returns the task group which this task belongs to.
TaskInputsgetInputs()
Returns the inputs of this task.
LoggergetLogger()
Returns the logger for this task.
LoggingManagergetLogging()
Returns the LoggingManager which can be used to control the logging level and
standard output/error capture for this task.
TaskDependencygetMustRunAfter()
Returns tasks that this task must run after.
StringgetName()
Returns the name of this task.
TaskOutputsgetOutputs()
Returns the outputs of this task.
StringgetPath()
Returns the path of the task, which is a fully qualified name for the task.
ProjectgetProject()
Returns the Project which this task belongs to.
TaskDependencygetShouldRunAfter()
Returns tasks that this task should run after.
TaskStategetState()
Returns the execution state of this task.
TaskDependencygetTaskDependencies()
Returns a TaskDependency which contains all the tasks that this task depends on.
FilegetTemporaryDir()
Returns a directory which this task can use to write temporary files to.
booleanhasProperty(String propertyName)
Determines if this task has the given property.
TaskleftShift(Closure action)
Deprecated.
TaskmustRunAfter(Object... paths)
Specifies that this task must run after all of the supplied tasks.
voidonlyIf(Closure onlyIfClosure)
Execute the task only if the given closure returns true.
voidonlyIf(Spec<? super Task> onlyIfSpec)
Execute the task only if the given spec is satisfied.
Objectproperty(String propertyName)
Returns the value of the given property of this task.
voidsetActions(List<Action<? super Task>> actions)
Sets the sequence of Action objects which will be executed by this task.
voidsetDependsOn(Iterable<?> dependsOnTasks)
Sets the dependencies of this task.
voidsetDescription(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.
voidsetFinalizedBy(Iterable<?> finalizedBy)
Specifies the set of finalizer tasks for this task.
voidsetGroup(String group)
Sets the task group which this task belongs to.
voidsetMustRunAfter(Iterable<?> mustRunAfter)
Specifies the set of tasks that this task must run after.
voidsetOnlyIf(Closure onlyIfClosure)
Execute the task only if the given closure returns true.
voidsetOnlyIf(Spec<? super Task> onlyIfSpec)
Execute the task only if the given spec is satisfied.
voidsetProperty(String name,
Object value)
Sets a property of this task.
voidsetShouldRunAfter(Iterable<?> shouldRunAfter)
Specifies the set of tasks that this task should run after.
TaskDependencyshouldRunAfter(Object... paths)
Specifies that this task should run after all of the supplied tasks.