api / org.gradle / BuildResult

BuildResult

open class BuildResult

A BuildResult packages up the results of a build executed by a org.gradle.initialization.GradleLauncher instance.

Constructors

<init>

BuildResult(gradle: Gradle, failure: Throwable)
BuildResult(action: String, gradle: Gradle, failure: Throwable)

Functions

getAction

open fun getAction(): String

The action performed by this build. Either `Build` or `Configure`.

getFailure

open fun getFailure(): Throwable

getGradle

open fun getGradle(): Gradle

rethrowFailure

open fun rethrowFailure(): BuildResult

Rethrows the build failure. Does nothing if there was no build failure.