abstract fun doFirst(action: Action<in Task>): Task
Adds the given Action to the beginning of this task's action list.
Return
the task object this method is applied to
abstract fun doFirst(action: Closure<Any>): Task
Adds the given closure to the beginning of this task's action list. The closure is passed this task as a parameter when executed.
action
- The action closure to execute.
Return
This task.
@Incubating abstract fun doFirst(actionName: String, action: Action<in Task>): Task
Adds the given Action to the beginning of this task's action list.
actionName
- An arbitrary string that is used for logging.
Return
the task object this method is applied to
Since
4.2