Generating a reportfile with my comments in commandline under Windows [ACCEPTED]
1 回表示 (過去 30 日間)
古いコメントを表示
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:
- 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?
- If the views must be exported, how can i do this in commandline?
Sincerly Jas
0 件のコメント
回答 (1 件)
Alexandre De Barros
2015 年 8 月 13 日
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 件のコメント
Image Analyst
2015 年 8 月 14 日
Click the green "Accept this answer" link rather than just adding "ACCEPTED" to the subject line so Alexandre will get credit for helping you.
参考
カテゴリ
Help Center および File Exchange で Generate Report についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!