padv.builtin.task.RunBuildTool Class
Namespace: padv.builtin.task
Superclasses: padv.Task
Description
Starting in R2023b, the padv.builtin.task.RunBuildTool class provides a
task that can execute specific tasks in a MATLAB® build tool plan. With the MATLAB build tool, you can create a build plan that identifies code issues, runs tests,
and performs other operations. A build file is a function file named
buildfile.m that defines a build plan for the MATLAB build tool. For more information, see Build Automation.
You can add the task to your process model by using the method addTask.
After you add the task to your process model, you can run the tasks from the Process Advisor app or
by using the function runprocess.
To view the source code for this built-in task, in the MATLAB Command Window, enter:
open padv.builtin.task.RunBuildToolThe padv.builtin.task.RunBuildTool class is a handle class.
Creation
Description
creates a task for executing specific tasks in the MATLAB build tool plan in the project. The task = padv.builtin.task.RunBuildTool(Tasks=taskNames,CleanTask=cleanTaskName)cleanTaskName
specifies which task deletes outputs and traces of the other tasks in the build
file.
sets certain properties using one or more name-value arguments. For example, task = padv.builtin.task.RunBuildTool(___,Name=Value)task
=
padv.builtin.task.RunBuildTool(Tasks="",CleanTask="",Name="MyMATLABBuildToolTask")
creates a Process Advisor task that can execute the default task for the
MATLAB build tool, ignores the clean task in the build plan, and names the task
"MyMATLABBuildToolTask".
You can use this syntax to set property values for InputQueries,
Name, IterationQuery,
InputDependencyQuery, AlwaysRun, and
TaskArguments.
The padv.builtin.task.RunBuildTool class also has other properties, but you cannot set
those properties during task creation.
Input Arguments
Properties
Methods
Examples
Version History
Introduced in R2023b