api / org.gradle.api / Task / leftShift

leftShift

abstract fun leftShift(action: Closure<Any>): Task

Adds the given closure to the end of this task's action list. The closure is passed this task as a parameter when executed. You can call this method from your build script using the << left shift operator.

Parameters

action - The action closure to execute.

Return
This task.