leemoa / cppcheclipse

Automatically exported from code.google.com/p/cppcheclipse
0 stars 0 forks source link

Creating xml output file doesn't work #69

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Project - Properties - cppcheclipse - Advanced Settings
2. Enter     --xml 2> errlog.xml
3. Start cppcheck

What is the expected output? What do you see instead? Please provide output
of the console view of cppcheclipse as well as the Eclipse error log.

I see:

cppcheck.exe --template={file};{line};{severity};{id};{message} -j 1 
--enable=style,information,performance --force --file-list=- --xml 2> errlog.xml

What I wanted to do is creating the xml-File from error output. But it doesn't 
work - the advanced command line arguments are added behind the --file-list=- 
command, it seems that the xml option is interpreted as a file.

What version of the cppcheclipse, cppcheck, Eclipse and Java are you using?
On what operating system?

Windows 7 64 bit
cppcheclipse 1.0.0
cppcheck 1.66
Eclipse Kepler 4.3.2

Please provide any additional information below.

Original issue reported on code.google.com by czscho...@gmail.com on 11 Sep 2014 at 11:27

GoogleCodeExporter commented 9 years ago
That does not work by design. Redirecting the stderr and stdout is not 
supported. Why do you want to export that to a file from within Eclipse? The 
information being extracted need to be handled by Eclipse. That is the whole 
idea of the plugin...
If you are interested just in the report in XML format, please don't trigger 
from within Eclipse.

Original comment by konra...@gmx.de on 11 Sep 2014 at 11:55