api / org.gradle.tooling / BuildActionExecuter / forTasks

forTasks

abstract fun forTasks(vararg tasks: String): BuildActionExecuter<T>
abstract fun forTasks(tasks: MutableIterable<String>): BuildActionExecuter<T>

Specifies the tasks to execute before executing the BuildAction. If not configured, null, or an empty array is passed, then no tasks will be executed.

Parameters

tasks - The paths of the tasks to be executed. Relative paths are evaluated relative to the project for which this launcher was created. An empty list will run the project's default tasks.

Return
this

Since
3.5