abstract fun beforeTask(closure: Closure<Any>): Unit
Adds a closure to be called immediately before a task is executed. The task is passed to the closure as a parameter.
closure
- The closure to execute when a task is about to be executed.
abstract fun beforeTask(action: Action<Task>): Unit
Adds an action to be called immediately before a task is executed. The task is passed to the action as a parameter.
action
- The action to execute when a task is about to be executed.
Since
3.1