support running the sun_checks.xml

This commit is contained in:
Oliver Burn 2008-10-06 04:03:30 +00:00
parent a9e923790f
commit 7f92af2b87
2 changed files with 22 additions and 3 deletions

View File

@ -314,6 +314,25 @@
/>
</target>
<target name="checkstyle.sun_checks" depends="compile.checkstyle"
description="Runs checkstyle using sun_checks.xml">
<taskdef name="checkstyle"
classname="com.puppycrawl.tools.checkstyle.CheckStyleTask">
<classpath refid="run.classpath"/>
</taskdef>
<property name="check.config" location="sun_checks.xml"/>
<checkstyle config="${check.config}"
failOnViolation="true"
>
<fileset dir="src/checkstyle"
includes="**/*.java,**/*.properties"
excludes="**/Generated*.java,**/gui/*"/>
<formatter type="plain"/>
<classpath refid="run.classpath"/>
</checkstyle>
</target>
<target name="checkstyle.style" depends="compile.checkstyle"
description="Runs checkstyle against it's own sources to test generation of error reports">
<taskdef name="checkstyle"

View File

@ -32,9 +32,9 @@
<module name="Checker">
<!-- Checks that a package.html file exists for each package. -->
<!-- See http://checkstyle.sf.net/config_javadoc.html#PackageHtml -->
<module name="PackageHtml"/>
<!-- Checks that a package-info.java file exists for each package. -->
<!-- See http://checkstyle.sf.net/config_javadoc.html#JavadocPackage -->
<module name="JavadocPackage"/>
<!-- Checks whether files end with a new line. -->
<!-- See http://checkstyle.sf.net/config_misc.html#NewlineAtEndOfFile -->