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

TaskSuccessResult

interface TaskSuccessResult : TaskOperationResult, SuccessResult

Describes how a task operation finished successfully.

Since
2.5

Functions

isFromCache

abstract fun isFromCache(): Boolean

Returns whether the output for this task was pulled from a build cache when using task output caching.

NOTE: This will always be false if the Gradle version does not support task output caching.

isUpToDate

abstract fun isUpToDate(): Boolean

Returns whether this task was up-to-date.