</target>
<target name="validate" depends="download-validate" if="${execute.validate}">
+ <!-- Required so we can cache checkstyle results -->
+ <mkdir dir="${tomcat.output}/res/checkstyle"/>
+
<taskdef resource="checkstyletask.properties"
classpath="${checkstyle.jar}" />
<checkstyle config="res/checkstyle/checkstyle.xml">
<module name="FileTabCharacter"/>
<module name="TreeWalker">
+ <!-- Cache what has passed checkstyle -->
+ <property name="cacheFile"
+ value="${tomcat.output}/res/checkstyle/cachefile-checkstyle.xml"/>
+
<!-- Block Checks -->
<!-- ~60 errors
<module name="AvoidNestedBlocks"/>
</module>
-->
</module>
-</module>
\ No newline at end of file
+</module>
<!-- Specific checks for javax.* packages -->
<module name="TreeWalker">
+ <!-- Cache what has passed checkstyle -->
+ <property name="cacheFile"
+ value="${tomcat.output}/res/checkstyle/cachefile-javax-checkstyle.xml"/>
+
<module name="ImportControl">
<property name="file" value="${basedir}/res/checkstyle/javax-import-control.xml"/>
</module>
</module>
-</module>
\ No newline at end of file
+</module>
<!-- Specific checks for javax.* packages -->
<module name="TreeWalker">
+ <!-- Cache what has passed checkstyle -->
+ <property name="cacheFile"
+ value="${tomcat.output}/res/checkstyle/cachefile-org-checkstyle.xml"/>
+
<module name="ImportControl">
<property name="file" value="${basedir}/res/checkstyle/org-import-control.xml"/>
</module>
</module>
-</module>
\ No newline at end of file
+</module>
</fix>
</changelog>
</subsection>
+ <subsection name="Other">
+ <changelog>
+ <fix>
+ <bug>50743</bug>: Cache CheckStyle results between builds to speed up
+ validation. Patch provided by Oliver. (markt)
+ </fix>
+ </changelog>
+ </subsection>
</section>
<section name="Tomcat 7.0.8 (markt)" rtext="released 2011-02-05">
<subsection name="Catalina">