Main Content

matlab.buildtool.BuildResult class

Package: matlab.buildtool

Result of running a build

Description

The 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 expected to run.

The build runner instantiates this class. You do not need to create an object of the class directly.

Properties

expand all

Whether the build failed, returned as a logical 1 (true) or 0 (false). If the value is true, then the build failed. Otherwise, it ran without any failures. The build fails if the build runner encounters an uncaught error while running a task.

Attributes:

GetAccess
public
SetAccess
immutable

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.

Attributes:

GetAccess
public
SetAccess
immutable

Data Types: duration

Results of the tasks, returned as a row vector of matlab.buildtool.TaskResult objects. Each TaskResult object includes detailed information about a task that was expected to run.

Attributes:

GetAccess
public
SetAccess
immutable

Version History

Introduced in R2022b