padv.builtin.query.FindBuildfile Class
Namespace: padv.builtin.query
Superclasses: padv.Query
, padv.builtin.query.FindArtifacts
Query for finding build file for MATLAB build tool
Description
The padv.builtin.query.FindBuildfile
class provides a query that can return
a build file in the current project. A build file is a function file named
buildfile.m
that defines a build plan for the MATLAB® build tool. With the MATLAB build tool, you can create a build plan that identifies code issues, runs tests,
and performs other operations. For more information, see Build Automation. By default, the
query finds the buildfile.m
file in the project root folder. But you can
automatically select a specific build file by using the optional name-value arguments.
If
you define a build file for your project, you can use the built-in task padv.builtin.task.RunBuildTool
to invoke the build tool. The
RunBuildTool
task uses the FindBuildfile
query to find the
build file in your project and use that file as a task input.
The padv.builtin.query.FindBuildfile
class is a handle
class.
Creation
Description
creates a query for finding the MATLAB Build Tool build file in your project.query
= padv.builtin.query.FindBuildfile()
sets certain properties using one or more name-value arguments. For example,
query
= padv.builtin.query.FindBuildfile(Name=Value
)FindBuildfile(IncludePathRegex="BuildFileFolderName*")
creates a
query that only includes build files where the file path includes the specified string
BuildFileFolderName
.
The padv.builtin.query.FindBuildfile
class also has other properties, but you cannot set
those properties during query creation.
Input Arguments
Properties
Methods
Examples
Capabilities and Limitations
This table identifies functionality that is supported by the query.
Functionality | Supported? |
---|---|
Input query for task | Only when the query properties |
Iteration query for task | No. |