api / org.gradle.tooling.events.task / TaskFinishEvent

TaskFinishEvent

interface TaskFinishEvent : TaskProgressEvent, FinishEvent

An event that informs about a task having finished its execution. You can query the result of the task using #getResult().

Since
2.5

Functions

getResult

abstract fun getResult(): TaskOperationResult

Returns the result of the finished task operation. Currently, the result will be one of the following sub-types:

  • TaskSuccessResult
  • TaskSkippedResult
  • TaskFailureResult

Inherited Functions

getDescriptor

abstract fun getDescriptor(): TaskOperationDescriptor

Returns the description of the task for which progress is reported.