- On the Project Browser pane, right-click Project Source Files, select Add Source Folders, and then add the Both folder.
- Right-click Project Source Files again, and select Create New Module.
- Then right-click the Both folder under Project Source Files and using the Copy to item, copy this folder to the module you previously created.
How to add a new module into my exist project
3 views (last 30 days)
Show older comments
Hello,
I analyzed my source code via Jenkins using Code Prover command line (Both result folder). In my project folder, there are 3 result folders and 2 of them are project modules that were created before.
I wanna know how to add the other (Both result folder) as the third project module by using command line.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/456529/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/456534/image.png)
Thanks for your help
0 Comments
Answers (1)
Anirban
on 10 Dec 2020
Edited: Anirban
on 10 Dec 2020
Hi,
You can add the third module interactively in the Polyspace user interface and then generate scripts for command-line runs (or runs from CI systems such as Jenkins).
To create a new module that has the contents of the Both folder:
You can then create scripts exclusively for that newly created module, and run those scripts at the command line. See more details in Configure Polyspace Analysis Options in User Interface and Generate Scripts. Specifically, this line is important to note:
"If a project has more than one module (with more than one configuration in each module), the options from the currently active configuration in the currently active module will be extracted in the script."
So, when generating your script, make sure that you have the new module selected.
0 Comments
See Also
Categories
Find more on Set Up Code Prover Analysis on Servers During Continuous Integration in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!