QuickBuild2 Documentation
|
To publish CheckStyle report, you only need two steps:
Generate CheckStyle ReportQuickBuild will NOT generate CheckStyle report automatically, so first make sure the CheckStyle report is produced by ANT or by any other build tool. The following example shows how to generate CheckStyle XML report by Ant JUnit task: 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> After adding the target above, generate the XML report for your source code, and you can tell QuickBuild to publish the results. Publish CheckStyle ReportJust like all other build reports, to add CheckStyle report, just follow [adding a publish step] in a configuration. When you add publish CheckStyle Report step, the following screen will be displayed: In source report files field, QuickBuild uses Ant style file patterns to collect the reports, and the directory you specified is relative to the [workspace] directory. QuickBuild will analyze the CheckStyle report and it will generate the Overview/Details after each build, and it also will generate the statistics for the reports. |
Publish CheckStyle Report
You are viewing the current version of this page. (v. 28)