views:

800

answers:

2

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

+1  A: 

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.

Dan Vinton
+1  A: 

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" />
Gilberto AUS