api / org.gradle.tooling / BuildLauncher / forTasks

forTasks

abstract fun forTasks(vararg tasks: String): BuildLauncher

Sets the tasks to be executed. If no tasks are specified, the project's default tasks are 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.

Return
this

Since
1.0-milestone-3

abstract fun forTasks(vararg tasks: Task): BuildLauncher
abstract fun forTasks(tasks: MutableIterable<Task>): BuildLauncher

Sets the tasks to be executed. If no tasks are specified, the project's default tasks are executed.

Note that the supplied tasks do not necessarily need to belong to the project which this launcher was created for.

Parameters

tasks - The tasks to be executed.

Return
this

Since
1.0-milestone-3