api / org.gradle.api.execution / TaskExecutionGraph / hasTask

hasTask

abstract fun hasTask(path: String): Boolean

Determines whether the given task is included in the execution plan.

Parameters

path - the absolute path of the task.

Exceptions

IllegalStateException - When this graph has not been populated.

Return
true if a task with the given path is included in the execution plan.

abstract fun hasTask(task: Task): Boolean

Determines whether the given task is included in the execution plan.

Parameters

task - the task

Exceptions

IllegalStateException - When this graph has not been populated.

Return
true if the given task is included in the execution plan.