public class BuildResult
extends java.lang.Object
A BuildResult packages up the results of a build executed by a GradleLauncher instance.
| Constructor | Description | 
|---|---|
| BuildResult(java.lang.String action,
           Gradle gradle,
           java.lang.Throwable failure) | |
| BuildResult(Gradle gradle,
           java.lang.Throwable failure) | 
| Modifier and Type | Method | Description | 
|---|---|---|
| java.lang.String | getAction() | The action performed by this build. | 
| java.lang.Throwable | getFailure() | |
| Gradle | getGradle() | |
| BuildResult | rethrowFailure() | Rethrows the build failure. | 
public BuildResult(@Nullable
                   Gradle gradle,
                   @Nullable
                   java.lang.Throwable failure)
public BuildResult(java.lang.String action,
                   @Nullable
                   Gradle gradle,
                   @Nullable
                   java.lang.Throwable failure)
@Nullable public Gradle getGradle()
@Nullable public java.lang.Throwable getFailure()
public java.lang.String getAction()
public BuildResult rethrowFailure()
Rethrows the build failure. Does nothing if there was no build failure.