Thursday, March 3, 2011

Looking for example xml to generate a Findbugs report using ANT to analyse multiple jars?

How do I setup an Ant task to generate a Findbugs report when the source folder has many jars in it?

I'm looking for a worked example of the ant task required to output the fancy HTML from a folder containing multiple jars

From stackoverflow
  • FindBugs ant target to generate the report in XML format, then apply one of the XSLT transformations that come with your FindBugs installation via the standard Ant XSLT target.

  • This thread is 2 years old but maybe someone will find it useful:

    You can do it easily:

    <class location="${src.dir}/test.jar" /> 
    <class location="${src.dir2}/test2.jar" />
    

    Assuming you have 2 source path you should define them before:

    <sourcePath path="first source path" />
    <sourcePath path="second source path" />
    

0 comments:

Post a Comment