Result of running a build
matlab.buildtool.BuildResult class provides the result of running a
build. The result includes information about whether the build failed as well as the duration
of the build. It also includes detailed information about each task that was part of the
The build runner instantiates this class. You do not need to create an object of the class directly.
Failed — Whether build failed
Whether the build failed, returned as a
of data type
logical. If the value is
1, then the
build failed. Otherwise, it ran without any failures. The build fails if the build
runner encounters an uncaught error while setting up or tearing down the build
environment, or while running a task.
Duration — Time spent running build
Time spent running the build, returned as a duration scalar. The total run time for a build exceeds the sum of the times spent running individual tasks because it also accounts for overhead associated with the build runner.
TaskResults — Results of tasks
row vector of
Results of the tasks, returned as a row vector of
matlab.buildtool.TaskResult objects. Each
includes detailed information about a task that was part of the build.
Introduced in R2022b