- 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 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(1 个)
Anirban
2020-12-10
编辑:Anirban
2020-12-10
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 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Set Up Code Prover Analysis on Servers During Continuous Integration 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!