interface BuildResult
The result of executing a build, via the GradleRunner.
Since
2.6
See Also
GradleRunner#build()GradleRunner#buildAndFail()
abstract fun getOutput(): String
The textual output produced during the build. This is equivalent to the console output produced when running a build from the command line. It contains both the standard output, and standard error output, of the build. |
|
abstract fun getTasks(): MutableList<BuildTask>
The tasks that were part of the build. The order of the tasks corresponds to the order in which the tasks were started. If executing a parallel enabled build, the order is not guaranteed to be deterministic. The returned list is an unmodifiable view of items. The returned list will be empty if no tasks were executed. This can occur if the build fails early, due to a build script failing to compile for example. |
|
abstract fun task(taskPath: String): BuildTask
Returns the result object for a particular task, or |
|
abstract fun taskPaths(outcome: TaskOutcome): MutableList<String>
The paths of the subset of The returned list is an unmodifiable view of items. The returned list will be empty if no tasks were executed with the given outcome. |
|
abstract fun tasks(outcome: TaskOutcome): MutableList<BuildTask>
The subset of The returned list is an unmodifiable view of items. The returned list will be empty if no tasks were executed with the given outcome. |