task

@Nullable
abstract fun task(taskPath: String): BuildTask(source)

Returns the result object for a particular task, or null if the given task was not part of the build.

Return

information about the executed task, or null if the task was not executed

Parameters

taskPath

the path of the target task