From 8b823fd269ecce0d27ff69212a70d8be84f89b80 Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Sun, 28 Jan 2007 19:29:39 +0000
Subject: [PATCH] Enable the use of the caching mechanism used by CheckStyle to significantly reduce the time required for it to run during subsequent builds.

---
 opends/build.xml |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/opends/build.xml b/opends/build.xml
index 01c1aba..b2cab9e 100644
--- a/opends/build.xml
+++ b/opends/build.xml
@@ -108,8 +108,9 @@
   <property name="ant.dir" location="${ext.dir}/ant"                />
   <property name="ant.lib.dir" location="${ant.dir}/lib"            />
 
-  <!-- Properties for the checkstyle tool.                         -->
-  <property name="checkstyle.dir"  location="${ext.dir}/checkstyle" />
+  <!-- Properties for the checkstyle tool.                           -->
+  <property name="checkstyle.dir"  location="${ext.dir}/checkstyle"   />
+  <property name="checkstyle.cache.dir"  location=".checkstyle-cache" />
 
   <!-- Properties for the SVNKit tool.                         -->
   <property name="svnkit.dir"  location="${ext.dir}/svnkit" />
@@ -287,6 +288,7 @@
 
   <!-- Ensure that the source code meets basic style requirements. -->
   <target name="checkstyle" description="Perform basic source style checks">
+    <mkdir dir="${checkstyle.cache.dir}" />
 
     <taskdef resource="checkstyletask.properties"
          classpath="${checkstyle.dir}/checkstyle-all-4.1.jar" />
@@ -304,7 +306,7 @@
     </checkstyle>
 
     <checkstyle config="${checkstyle.dir}/opends-checkstyle.xml"
-          failOnViolation="true">
+         failOnViolation="true">
       <fileset dir="${statuspanel.src.dir}" includes="**/*.java" />
       <formatter type="plain" />
     </checkstyle>

--
Gitblit v1.10.0