(no commit message)
[utils] / build / header.xml
index acea5089780be7f60fde2f501a30c1ca08a4e5d9..fed9d8d7619a2b938168f22b5128f0e5a2594d7c 100644 (file)
@@ -9,8 +9,17 @@
 </target>
 
 
+<property name="project.home" value=".."/>
+<property name="build.dir" value="${project.home}/build"/>
+<property name="lib.dir" value="${project.home}/lib/wamblee"/>
 
 <target name="download.dep">
+  <if>
+    <isset property="proxyhost"/>
+    <then>
+      <setproxy proxyhost="${proxyhost}" proxyport="${proxyport}"/>
+    </then>
+  </if>
   <if>
     <isset property="artifact"/>
     <then>
   </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="commons-codec.d">
+  <antcall target="download.dep">
+    <param name="group" value="commons-codec"/>
+    <param name="version" value="1.3"/>
+  </antcall>
+</target>
+
+<target name="commons-email.d">
+  <antcall target="download.dep">
+    <param name="group" value="commons-email"/>
+    <param name="version" value="1.0"/>
+  </antcall>
+</target>
+
+
+
+
 <target name="logging.d" depends="log4j.d,commons-logging.d">
 </target>
 
     <param name="group" value="dom4j"/>
     <param name="version" value="1.6"/>
   </antcall>
+  <antcall target="download.dep">
+    <param name="group" value="jaxen"/>
+    <param name="version" value="1.1-beta-4"/>
+  </antcall>
 </target>
 
-<target name="xerces.d">
+<target name="ehcache.d">
   <antcall target="download.dep">
     <param name="group" value="ehcache"/>
     <param name="version" value="1.1"/>
   </antcall>
 </target>
 
-<target name="ehcache.d">
+<target name="xerces.d">
   <antcall target="download.dep">
     <param name="group" value="xerces"/>
     <param name="version" value="2.4.0"/>
   </antcall>
 </target>
 
+<target name="activation.d">
+  <copy todir="${download.dir}">
+    <fileset dir="${special.lib.dir}/jaf-1.0.2">
+       <include name="*.jar"/>
+    </fileset>
+  </copy>
+</target>
+
+<target name="mail.d" depends="activation.d">
+  <copy todir="${download.dir}">
+    <fileset dir="${special.lib.dir}/javamail-1.3.3_01">
+       <include name="*.jar"/>
+    </fileset>
+  </copy>
+</target>
+
+
+
+<target name="httpclient.d">
+  <antcall target="download.dep">
+    <param name="group" value="commons-httpclient"/>
+    <param name="version" value="3.0"/>
+  </antcall>
+</target>
+
+<target name="jtidy.d">
+  <antcall target="download.dep">
+    <param name="group" value="jtidy"/>
+    <param name="version" value="4aug2000r7-dev"/>
+  </antcall>
+</target>
+
+<property name="support.dist.dir" value="${lib.dir}/support"/>
+<target name="wamblee.support.d">
+  <copy todir="${download.dir}">
+    <fileset dir="${support.dist.dir}">
+      <include name="support.jar"/>
+    </fileset>
+  </copy>
+</target>
+<target name="wamblee.support.test.d">
+  <copy todir="${download.dir}">
+    <fileset dir="${support.dist.dir}">
+      <include name="support-test.jar"/>
+    </fileset>
+  </copy>
+</target>
+
+<property name="crawler.dist.dir" value="${lib.dir}/crawler/basic"/>
+<target name="wamblee.crawler.d">
+  <copy todir="${download.dir}">
+    <fileset dir="${crawler.dist.dir}">
+      <include name="crawler-basic.jar"/>
+    </fileset>
+  </copy>
+</target>
+<target name="wamblee.crawler.test.d">
+  <copy todir="${download.dir}">
+    <fileset dir="${crawler.dist.dir}">
+      <include name="crawler-basic-test.jar"/>
+    </fileset>
+  </copy>
+</target>
+
 <target name="junit.d">
   <antcall target="download.dep">
     <param name="group" value="junit"/>
   </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">
       <!--  The project.home property can also be overriden in a build.xml
             in case the source is in a subdirectory and not necessarily
             in the top-level directory --> 
-    <property name="project.home" value=".."/>
-    <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.lib.dir" value="${build.dir}/lib/ant"/>
+    <property name="ant.downloaded.lib.dir" value="${build.dir}/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="special.lib.dir" value="${build.dir}/lib/special"/>
     <property name="forrest.xdocs.dir" value="${project.home}/site/xdocs"/>
     <property name="forrest.build.dir" value="${project.home}/site/build"/>
     <property name="forrest.build.site.dir" value="${forrest.build.dir}/site"/>
     <path id="doccheck.path">
       <pathelement location="${doccheck.home}"/>
     </path>
+    
+    <!-- PdfDoclet path -->
+    <property name="pdfdoclet.home" value="${ant.lib.dir}/pdfdoclet-1.0.2-all.jar"/>
+    <path id="pdfdoclet.path">
+      <pathelement location="${pdfdoclet.home}"/>
+    </path>
         
     <!-- Hibernate paths --> 
     <!--  name of the file in the source directory containing
     <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 
         <property name="module.emmareport.dir"
                value="${module.report.dir}/html/emma"/>
        <property name="module.docbase.dir"
-               value="${module.build.dir}/javadoc" />
+               value="${module.build.dir}/docs" />
        <property name="module.javadoc.dir"
                value="${module.docbase.dir}/api" />
        <property name="module.javadocjar.name"
                value="${module.docbase.dir}/pdf" />
        <property name="module.doccheck.dir"
                value="${module.docbase.dir}/doccheck" />
+       <property name="module.checkstyle.dir"
+           value="${module.docbase.dir}/checkstyle" />
        <property name="module.jar.name" value="${module.name}.jar" />
        
        <!--  Replace the dash by a / to create a relative directory 
   
   <target name="help-impl">
     <echo>
+    
+      Preparation:
+      
+      To execute with a specific proxy host and port, start ant with the 
+      command-line options   -Dproxyhost=hostname -Dproxyport=portnumber.
+      
+      deps:          Download dependencies, this is necessary for using 
+                     any of the build targets.
+      clean-deps:    Remove downloaded dependencies. 
+      
       General build targets: 
       
       clean:         Cleans up all build results (excluding the dist location).