api / org.gradle / TaskExecutionRequest

TaskExecutionRequest

@Incubating interface TaskExecutionRequest

A request to execute some tasks, along with an optional project path context to provide information necessary to select the tasks

Since
2.0

Functions

getArgs

abstract fun getArgs(): MutableList<String>

The arguments to use to select and optionally configure the tasks, as if provided on the command-line.

getProjectPath

abstract fun getProjectPath(): String

Project path associated with this task request if any.

getRootDir

abstract fun getRootDir(): File

The root folder of the build that this task was defined in.