api / org.gradle.api.tasks / TaskContainer / findByPath

findByPath

abstract fun findByPath(path: String): Task

Locates a task by path. You can supply a task name, a relative path, or an absolute path. Relative paths are interpreted relative to the project for this container. This method returns null if no task with the given path exists.

Parameters

path - the path of the task to be returned

Return
The task. Returns null if so such task exists.