dion        02/03/29 02:13:19

  Modified:    latka    build.xml
  Log:
  Added jar fetching target.
  Reworked properties to be more like other components
  Added license to nightly build
  
  Revision  Changes    Path
  1.31      +57 -17    jakarta-commons/latka/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/latka/build.xml,v
  retrieving revision 1.30
  retrieving revision 1.31
  diff -u -r1.30 -r1.31
  --- build.xml 24 Mar 2002 11:11:59 -0000      1.30
  +++ build.xml 29 Mar 2002 10:13:19 -0000      1.31
  @@ -1,4 +1,4 @@
  -<!-- $Id: build.xml,v 1.30 2002/03/24 11:11:59 dion Exp $ -->
  +<!-- $Id: build.xml,v 1.31 2002/03/29 10:13:19 dion Exp $ -->
   <project name="commons-latka" default="build-java" basedir=".">
   
       <!-- patternset describing files to be copied from the doc directory -->
  @@ -42,10 +42,15 @@
           <!-- command line classpath, if any -->
           <property name="cp" value=""/>
   
  -
  -        <property name="name" value="commons-latka"/>
  -        <property name="Name" value="Commons-Latka"/>
  -        <property name="Name-Long" value="Jakarta Commons Latka Functional Testing 
Suite"/>
  +        <!-- The name of this component -->
  +        <property name="component.name"     value="latka"/>
  +        <!-- The primary package name of this component -->
  +        <property name="component.package"  value="org.apache.commons.latka"/>
  +        <!-- The title of this component -->
  +        <property name="component.title" value="Latka Functional Testing Suite"/>
  +        <!-- The current version number of this component -->
  +        <property name="component.version"  value="1.0-dev"/>
  +        <property name="name" value="commons-${component.name}"/>
   
           <property name="test.entry" value="org.apache.commons.latka.TestAll"/>
           <property name="test.failonerror" value="true" /> 
  @@ -64,14 +69,15 @@
           <property name="dest.doc" value="${dest}/docs"/>
           <property name="dest.doc.api" value="${dest.doc}/api"/>
           <property name="dist" value="${basedir}/dist"/>
  -        <property name="dist.jar" value="${dist}/${name}.jar"/>
           <property name="dist.docs" value="${dist}/docs"/>
           <property name="dist.docs.dtds" value="${dist.docs}/dtds/1.0"/>
           <property name="resource" value="${basedir}/resource"/>
  -
  -        <available property="available-doc" file="${source.doc}"/> <!-- does this 
module have docs? -->
  -        <available property="available-src-java" file="${source.src.java}"/> <!-- 
does this module have java src? -->      
  -        <available property="available-src-test" file="${source.src.test}"/> <!-- 
does this module have test src? -->      
  +        <!-- does this module have docs? -->
  +        <available property="available-doc" file="${source.doc}"/> 
  +        <!-- does this module have java src? -->      
  +        <available property="available-src-java" file="${source.src.java}"/>
  +        <!-- does this module have test src? -->
  +        <available property="available-src-test" file="${source.src.test}"/>
   
           <!-- properties for xdocs creation -->
           <property name="dest.xdocs" value="${dest}/xdocs" />
  @@ -104,10 +110,11 @@
               <!-- We need a jaxen with JDOM support -->
               <classpath refid="classpath"/>
           </available>
  +        <echo message="-------- ${component.name} ${component.version} --------"/>
   
       </target>
   
  -   <!-- ######################################################### -->
  +   <!-- ######################################################### 
   
       <target name="copy-javadoc-source" depends="init" if="available-src-java">
           <mkdir dir="${javadoc-source-dir}"/>
  @@ -126,7 +133,7 @@
               </fileset>
           </copy>
       </target>
  -
  +-->
       <!-- ######################################################### -->
   
       <target name="clean" depends="init,clean-dist" description="removes generated 
files">
  @@ -198,8 +205,8 @@
                    sourcepath="${workdir}"
                    classpathref="classpath"
                    destdir="${dest.doc.api}"
  -                 windowtitle="${Name-Long}"
  -                 doctitle="${Name-Long}"
  +                 windowtitle="${component.title}"
  +                 doctitle="${component.title}"
                    bottom="&lt;small&gt;Copyright &amp;copy; 2001-2002 Apache 
Software Foundation. Documenation generated ${TODAY}&lt;/small&gt;."
                    protected="true"
                    version="true"
  @@ -327,8 +334,10 @@
   
       <!-- ######################################################### -->
   
  -    <target name="dist" depends="dist-jar,doc"
  +    <target name="dist" depends="jar,doc"
           description="builds binary distribution">
  +        
  +        <copy file="../LICENSE" todir="${dist}"/>
           <!-- need to copy docs directory from build to dist here 
                The following stolen from the webpages target
           -->
  @@ -351,7 +360,7 @@
           </copy>
       </target>
   
  -    <target name="dist-jar" depends="build">
  +    <target name="jar" depends="build">
           <mkdir dir="${dist}"/>
           <mkdir dir="${workdir}"/>
           <copy todir="${workdir}">
  @@ -359,7 +368,7 @@
                   <patternset refid="patternset-non-test-classes"/>
               </fileset>
           </copy>
  -        <jar jarfile="${dist.jar}">
  +        <jar jarfile="${dist}/commons-${component.name}-${component.version}.jar">
               <fileset dir="${workdir}"/>
           </jar>
           <delete dir="${workdir}"/>
  @@ -421,4 +430,35 @@
               <fileset dir="${source.src.java}" includes="**/*.java"/>
           </checkstyle>
       </target>
  +    
  +    <!-- ######################################################### -->
  +    
  +    <target name="fetch-runtime-jars" depends="init" 
  +            description="Fetch any jar files required for running latka into the 
lib directory">
  +        <property name="gump.jars" value="http://gump.covalent.net/jars/latest"/>   
 
  +        <get src="${gump.jars}/xml-commons/xml-apis.jar" dest="lib/jaxp.jar" 
  +             usetimestamp="true"/>
  +        <!-- no crimson, jsse, jnet, jcert. Using xerces2 for crimson -->     
  +        <get src="${gump.jars}/jakarta-log4j/log4j-${DSTAMP}.jar" 
dest="lib/log4j.jar" 
  +             usetimestamp="true"/>
  +        <get src="${gump.jars}/jakarta-commons/commons-httpclient.jar"
  +             dest="lib/commons-httpclient.jar" 
  +             usetimestamp="true"/>
  +        <get src="${gump.jars}/jakarta-commons/commons-latka.jar"
  +             dest="lib/commons-latka.jar" 
  +             usetimestamp="true"/>
  +        <get src="${gump.jars}/jakarta-regexp/jakarta-regexp-${DSTAMP}.jar"
  +             dest="lib/jakarta-regexp.jar" 
  +             usetimestamp="true"/>
  +        <get src="${gump.jars}/jdom/jdom.jar" dest="lib/jdom.jar" 
  +             usetimestamp="true"/>
  +        <get src="${gump.jars}/xml-xalan/xalan.jar" dest="lib/xalan2.jar" 
  +             usetimestamp="true"/>
  +        <get src="http://prdownloads.sourceforge.net/sax/sax2r2.jar";
  +             dest="lib/sax2.jar" 
  +             usetimestamp="true"/>
  +        <get src="${gump.jars}/xml-xerces2/xercesImpl.jar" dest="lib/crimson.jar" 
  +             usetimestamp="true"/>
  +    </target>
  +
   </project>
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to