Generating a reportfile with my comments in commandline under Windows [ACCEPTED]

1 view (last 30 days)
Hello,
i am using PolySpace R2012a for codeanalysis. After i comment each gray, orange and red warnings, i am trying to create a reportfile with all warnings and my comments for each warnings. To do this, i am calling report-generator in commandline (under Windows7 - DOS) as shown in help pages:
report-generator.exe -template Developer.rpt -format HTML -results-dir D:\Temp\Module_1\Result_1 -output-name Test
The problem is that my comments will not be exported in reportfile, but only the warnings. In the reportfile a warning is empty :
I figured out, that if i export the views before calling report-generator in RTE_View.txt, then my comments will be exported too (Menu: Review->Export In Spreedshet Format... ). I have to do this in GUI, but i need to do this in commandline.
The warning after exporting the views has my comments:
  1. Must i export the views in order to create the reportfile with my comments in commandline or is there a way to export my comments with report-generator?
  2. If the views must be exported, how can i do this in commandline?
Sincerly Jas

Answers (1)

Alexandre De Barros
Alexandre De Barros on 13 Aug 2015
Hello !
In R2012a, the report is generated from text files located in the Polyspace-Doc subfolder. The comments that you make are not saved into these text files, unless you export the review as you mention it in your question. So if you call the report generation manually, the comments will not be part of the report.
You can then use the manual export from the GUI or, if you prefer the command line, use the gen-excel-files command to recreate these text files that will then include the reviews.
The command is located here:
"...\PolyspaceForCandCPP_R2012a\Verifier\wbin\gen-excel-files.exe"
In your case, the command will be something like:
...\gen-excel-files.exe -results-dir D:\Temp\Module_1\Result_1\Polyspace-Doc -proj-file D:\Temp\Module_1\Result_1\<your_rte_file>.rte
Best regards,
Alexandre
  2 Comments
Image Analyst
Image Analyst on 14 Aug 2015
Click the green "Accept this answer" link rather than just adding "ACCEPTED" to the subject line so Alexandre will get credit for helping you.

Sign in to comment.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!