Main Content

matlab.buildtool.TaskResult class

Package: matlab.buildtool

Result of running a task

Description

The matlab.buildtool.TaskResult class provides the result of running a task using the build tool. The result includes information about whether the task failed or was skipped, as well as the duration of the task run.

When the build runner creates a BuildResult object, the TaskResults property on the object is a vector of TaskResult objects. Use this TaskResults property to access the result of each task that was expected to run. You do not need to create an object of the TaskResult class directly.

Properties

expand all

Name of the task corresponding to the result, returned as a string scalar.

Attributes:

GetAccess
public
SetAccess
Restricts access

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

Attributes:

GetAccess
public
SetAccess
Restricts access

Whether the task was skipped, returned as a logical 1 (true) or 0 (false). If the value is true, then the build runner skipped the task and did not run it. Otherwise, it ran the task. A task is skipped if the build runner encounters an uncaught error before running the task.

Attributes:

GetAccess
public
SetAccess
Restricts access

Time spent running the task, returned as a duration scalar.

Attributes:

GetAccess
public
SetAccess
Restricts access

Data Types: duration

Version History

Introduced in R2022b