For AI agents: the documentation index is at
https://docs.gradle.org/llms.txt
. Request any page with the header
Accept: text/markdown
to get Markdown. User manual pages are also available as Markdown by replacing
.html
with
.md
in the URL.
gradle
Toggle table of contents
9.9.3
API
Target filter
API
Switch theme
Search in API
Skip to content
gradle
gradle
/
org.gradle.testkit.runner
/
BuildResult
Build
Result
API
interface
BuildResult
(
source
)
The result of executing a build, via the
GradleRunner
.
Since
2.6
See also
Gradle
Runner
Members
Functions
get
Output
Link copied to clipboard
API
abstract
fun
getOutput
(
)
:
String
The textual output produced during the build.
get
Output
Reader
Link copied to clipboard
API
@
Incubating
abstract
fun
getOutputReader
(
)
:
BufferedReader
A new
BufferedReader
of the textual output produced during the build.
get
Tasks
Link copied to clipboard
API
abstract
fun
getTasks
(
)
:
List
<
BuildTask
>
The tasks that were part of the build.
task
Link copied to clipboard
API
@
Nullable
abstract
fun
task
(
taskPath
:
String
)
:
@
Nullable
BuildTask
Returns the result object for a particular task, or
null
if the given task was not part of the build.
task
Paths
Link copied to clipboard
API
abstract
fun
taskPaths
(
outcome
:
TaskOutcome
)
:
List
<
String
>
The paths of the subset of
getTasks
that had the given outcome.
tasks
Link copied to clipboard
API
abstract
fun
tasks
(
outcome
:
TaskOutcome
)
:
List
<
BuildTask
>
The subset of
getTasks
that had the given outcome.