Package org.gradle

Class BuildResult


  • public class BuildResult
    extends java.lang.Object

    A BuildResult packages up the result of a build.

    • Constructor Detail

      • BuildResult

        public BuildResult​(@Nullable
                           Gradle gradle,
                           @Nullable
                           java.lang.Throwable failure)
      • BuildResult

        public BuildResult​(java.lang.String action,
                           @Nullable
                           Gradle gradle,
                           @Nullable
                           java.lang.Throwable failure)
    • Method Detail

      • getGradle

        @Nullable
        public Gradle getGradle()
      • getFailure

        @Nullable
        public java.lang.Throwable getFailure()
      • getAction

        public java.lang.String getAction()
        The action performed by this build. Either `Build` or `Configure`.
      • rethrowFailure

        public BuildResult rethrowFailure()

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