View Source

To publish [Findbugs|http://findbugs.sourceforge.net/index.html] report, you only need two steps:
# Generate Findbugs *XML* report from [Ant|http://ant.apache.org] or [Maven|http://maven.apache.org] or any other build tool.
# Add Findbugs report publish step by choosing menu item _Publish -> Findbugs Reports_ from the step menu.

h2. Generate Findbugs Report

QuickBuild will NOT generate [Findbugs|http://findbugs.sourceforge.net/index.html] report automatically, so first make sure the [Findbugs|http://findbugs.sourceforge.net/index.html] report is produced by [ANT|http://ant.apache.org] or by any other build tool. The following example shows how to generate Findbugs test results with [Ant Findbugs task|http://findbugs.sourceforge.net/manual/anttask.html]:
{code:xml|title=Findbugs report target in build.xml}
<taskdef name="findbugs" classname="edu.umd.cs.findbugs.anttask.FindBugsTask"
classpath="${findbugs.utils.dir}/findbugs-ant.jar"/>

<target name="findbugs" depends="dist,findbugs-xml,findbugs-html"/>
<target name="findbugs-xml">
<mkdir dir="${findbugs.reports}"/>
<findbugs home="${findbugs.home}"
output="xml:withMessages"
outputFile="${findbugs.reports}/findbugs.xml" jvmargs="-Xmx512m">
<auxClasspath path="${lib.dir}" />
<sourcePath path="${src.dir}" />
<class location="${dist.dir}/${exe.name}.jar" />
</findbugs>
</target>
{code}
The code snippet will generate the XML reports for each test case, and the reports will be captured to '$\{findbugs.reports\}' directory. *Note. The _output_ format should be set to 'xml:withMessages'.*

h2. Publish Findbugs Report
Add _*Publish Findbugs Report*_ step to your build workflow. If you have several report sets, you can add several steps with different report set names. Reference [this page|Publish Build Reports] for more details.