(no commit message)
[utils] / build / header.xml
index 092a9e369faa9912312abaac9c039911a9bee988..260d482beaa47ba05876f29a7ea883ac7beabea4 100644 (file)
   </antcall>
 </target>
 
+<target name="commons-beanutils.d">
+  <antcall target="download.dep">
+    <param name="group" value="commons-beanutils"/>
+    <param name="version" value="1.7.0"/>
+  </antcall>
+</target>
+
+<target name="commons-collections.d">
+  <antcall target="download.dep">
+    <param name="group" value="commons-collections"/>
+    <param name="version" value="3.1"/>
+  </antcall>
+</target>
+
+
 <target name="commons-logging.d">
   <antcall target="download.dep">
     <param name="group" value="commons-logging"/>
   </antcall>
 </target>
 
+
+<target name="antlr.d">
+  <antcall target="download.dep">
+    <param name="group" value="antlr"/>
+    <param name="version" value="2.7.2"/>
+  </antcall>
+</target>
+
+<target name="checkstyle.d" depends="antlr.d,commons-beanutils.d,commons-logging.d,commons-collections.d">
+  <antcall target="download.dep">
+    <param name="group" value="checkstyle"/>
+    <param name="version" value="4.1"/>
+  </antcall>
+</target>
+
 <!-- common test dependencies for all test code --> 
 <target name="test.d" depends="junit.d,jmock.d,dbunit.d,emma.d">
 </target>
 
+<!-- downloaded dependencies for ant tasks --> 
+<target name="ant.d" depends="checkstyle.d">
+</target>
+
 
 
  <target name="import_header" unless="build_header_included">
     <property name="build.dir" value="${project.home}/build"/>
     <property name="lib.dir" value="${project.home}/lib/wamblee"/>
     <property name="ant.lib.dir" value="${project.home}/lib/ant"/>
+    <property name="ant.downloaded.lib.dir" value="${project.home}/lib/ant/downloaded"/>
     <property name="external.lib.dir" value="lib/external"/>
     <property name="test.lib.dir" value="lib/test"/>
     <property name="special.lib.dir" value="${project.home}/lib/special"/>
     <property name="emma.enabled" value="false"/>
     
     <!-- checkstyle -->
-    <!-- TMP download this dependence as well 
-    <property name="checkstyle.home" value="${lib.dir}/checkstyle-3.5"/>
-    <taskdef resource="checkstyletask.properties"
-             classpath="${checkstyle.home}/checkstyle-all-3.5.jar"/>
-    <property name="checkstyle.rules" value="coding-rules.xml"/>
-    <property name="checkstyle.test.rules" value="coding-rules-test.xml"/>
-    --> 
+    <property name="checkstyle.home" value="${ant.downloaded.lib.dir}"/>
+    <taskdef resource="checkstyletask.properties">
+      <classpath>
+        <fileset dir="${checkstyle.home}">
+         <include name="*.jar"/>
+       </fileset>
+      </classpath>
+    </taskdef>
+    <property name="checkstyle.rules" value="style.xml"/>
+    <property name="checkstyle.test.rules" value="test-style.xml"/>
+    
              
     <!-- jalopy -->
     <!-- TMP download this dependence as well