View Source

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

h2. Generate CheckStyle Report

QuickBuild will NOT generate [CheckStyle|http://checkstyle.sourceforge.net] report automatically, so first make sure the CheckStyle report is produced by [ANT|http://ant.apache.org] or by any other build tool. The following example shows how to generate CheckStyle XML report by [Ant JUnit task|http://ant.apache.org/manual/OptionalTasks/junit.html]:
{code:xml|title= CheckStyle target in build.xml}
<target name="checkstyle" description="Check coding style">
<taskdef resource="checkstyletask.properties">
<classpath refid="path.lib"/>
</taskdef>
<checkstyle config="checkstyle_checks.xml">
<fileset dir="${src.dir}">
<include name="**/*.java"/>
</fileset>
<formatter type="xml"/> <!-- DO use xml formatter -->
</checkstyle>
</target>
{code}
After adding the target above, generate the XML report for your source code, and you can tell QuickBuild to publish the results.

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