QuickBuild Documentation
|
To publish PMD report, you only need two steps:
Generate PMD ReportQuickBuild will NOT generate PMD report automatically, so first make sure the PMD report is produced by ANT or by any other build tool. The following example shows how to generate PMD XML report with PMD Ant task: CheckStyle target in build.xml <taskdef name="pmd" classname="net.sourceforge.pmd.ant.PMDTask"/> <target name="pmd"> <taskdef name="pmd" classname="net.sourceforge.pmd.ant.PMDTask"/> <pmd rulesetfiles="imports.xml,unusedcode"> <formatter type="xml" toFile="c:\pmd_report.xml"/> <fileset dir="C:\j2sdk1.4.1_01\src\java\lang\"> <include name="**/*.java"/> </fileset> </pmd> </target>
After adding the target, you can generate the XML report for your source code, and after that you can tell QuickBuild to publish the results. Publish PMD ReportAdd Publish PMD 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 for more details.
|