mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

neil_a_wilson
28.29.2007 8b823fd269ecce0d27ff69212a70d8be84f89b80
Enable the use of the caching mechanism used by CheckStyle to significantly
reduce the time required for it to run during subsequent builds.
5 files modified
16 ■■■■ changed files
opends/build.xml 8 ●●●●● patch | view | raw | blame | history
opends/ext/checkstyle/opends-checkstyle.xml 2 ●●●●● patch | view | raw | blame | history
opends/ext/checkstyle/opends-doctarget-checkstyle.xml 2 ●●●●● patch | view | raw | blame | history
opends/ext/checkstyle/opends-functest-checkstyle.xml 2 ●●●●● patch | view | raw | blame | history
opends/ext/checkstyle/opends-unittest-checkstyle.xml 2 ●●●●● patch | view | raw | blame | history
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>
opends/ext/checkstyle/opends-checkstyle.xml
@@ -6,6 +6,8 @@
<module name="Checker">
  <module name="TreeWalker">
    <property name="cacheFile" value="${basedir}/.checkstyle-cache/opends-checkstyle.cache" />
    <!-- Ensure that each source file starts with the appropriate header -->
    <module name="Header">
      <property name="headerFile" value="${basedir}/ext/checkstyle/opends.sourceheader" />
opends/ext/checkstyle/opends-doctarget-checkstyle.xml
@@ -6,6 +6,8 @@
<module name="Checker">
  <module name="TreeWalker">
    <property name="cacheFile" value="${basedir}/.checkstyle-cache/opends-doctarget-checkstyle.cache" />
    <!-- Ensure that all methods (including private) are documented -->
    <module name="JavadocMethod">
      <property name="scope" value="private" />
opends/ext/checkstyle/opends-functest-checkstyle.xml
@@ -6,6 +6,8 @@
<module name="Checker">
  <module name="TreeWalker">
    <property name="cacheFile" value="${basedir}/.checkstyle-cache/opends-functest-checkstyle.cache" />
    <!-- Ensure that each source file starts with the appropriate header -->
    <module name="Header">
      <property name="headerFile" value="${basedir}/ext/checkstyle/opends.sourceheader" />
opends/ext/checkstyle/opends-unittest-checkstyle.xml
@@ -6,6 +6,8 @@
<module name="Checker">
  <module name="TreeWalker">
    <property name="cacheFile" value="${basedir}/.checkstyle-cache/opends-unittest-checkstyle.cache" />
    <!-- Ensure that each source file starts with the appropriate header -->
    <module name="Header">
      <property name="headerFile" value="${basedir}/ext/checkstyle/opends.sourceheader" />