I think the findbugs-maven report  format is more appropriate to Maven.  I
wrote both reporters and the Maven one seems to accommodate the other
plugins that require xml output such as dashboard, xradar and qaLab.
At this point we would need to get a consensus on any changes that would
impact other plugins.
You could create stylesheet to transform the format.  What is it you are
trying to use the xml for?


I wrote the original findbugs xdoc writer as well as the Maven 2 version so
I do have a familiarity with the code if you have any questions.


--
Regards,


Garvin LeClaire
[EMAIL PROTECTED]


On 5/7/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

 hi everybody,

at the moment i'm using FindBugs together with ant. now i'd like to use
FindBugs with maven.
The problem is now, that the xml-output generated with the ant-target
differs from one generated with the maven-findbugs-plugin.

xml-output generated by the maven-plugin:

<BugCollection version=........." >
        <file classname=........." >
                <BugInstance type="SA_LOCAL_SELF_ASSIGNMENT"
priority="Normal" category="STYLE" message="SA: ......" lineNumber="21" />

                <BugInstance type="BIT_AND_ZZ" priority="Normal"
category="CORRECTNESS" message=".........." lineNumber="15" />

        </file>
        <Errors>
        </Errors>
</BugCollection>

to compare: xml-output with ant-task:

<BugCollection version="........." >
        <Project filename="........">
                <Jar>.....</Jar>
                <SrcDir>......</SrcDir>
         </Project>
        <BugInstance ...>
                <Class classname=".........">
                        <SourceLine classname="........"/>
                </Class>
                <Method ....>
                        <SourceLine ......../>
                </Method>
                <SourceLine classname="......." />
        </BugInstance>
        <Errors></Errors>
        <FindBugsSummary........</FindBugsSummary>
        <ClassFeatures></ClassFeatures>
        <History></History>
</BugCollection>

So my questions:
*1) is there an "easy"-way to adjust the xml-ouput to the one similar zu
the ant-task? or do i have to rewrite the maven-plugin ?

*2) will the output get adjusted in the future, or will it always differ
from the one generated by the ant-task?
*3) whats the reason to change the output of findbugs? is it because maven
needs an other structure to be able to handle the output ?

it would be great if u could answer my questions....

and by the way....sorry for my bad english .-)

Reply via email to