Main Content

Application source folders

Add source folders to Polyspace Platform project

Since R2024a

Description

Add source folders to a Polyspace Platform (Polyspace Test) project or see source folders explicitly added to the project.

Set Option

User interface (Polyspace Platform (Polyspace Test), desktop products only): In your project configuration, the option is on the Project tab.

Why Use This Option

You typically need this option to see source folders explicitly added to a project.

In a regular workflow, you might be adding source folders using one of these methods:

  • Option Add Source Folder on the Polyspace® Platform toolstrip.

  • Right-click option Add Source Folder on the Code node of a Polyspace Platform project.

You see each source folder as a new row listed under the Application source folders option. The source folder path is added relative to the project path. For more information, see Create Project and Add Source Files in Polyspace Platform User Interface (Polyspace Test).

You can use this option to add source folders by absolute path, or to add source folder locations using a project or system environment variable. These features are not available when adding files using the other methods.

Settings

You can add a source folder by absolute or relative path:

  • Select Add folder button to add the absolute path to a source folder.

  • Select Add folder as relative path button to add a source folder relative to the project path.

You can also directly enter a path after adding an empty row using the Add empty row button button, or edit an existing path. Editing an existing path is useful when you use a project configuration variable or a system environment variable as a shorthand in your paths. You can first enter an absolute path using the Add file button button and replace part of the path with a project configuration variable or system environment variable. For more information, see Project configuration variables (Polyspace Test).

To remove a source folder, select the corresponding row and click Remove selected button.

Version History

Introduced in R2024a