commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ozeigerm...@apache.org
Subject cvs commit: jakarta-commons/transaction build.xml
Date Sat, 20 Nov 2004 00:37:04 GMT
ozeigermann    2004/11/19 16:37:04

  Modified:    transaction build.xml
  Log:
  Extended with doc, dist and package target
  
  Revision  Changes    Path
  1.2       +121 -3    jakarta-commons/transaction/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/transaction/build.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- build.xml	18 Nov 2004 23:27:18 -0000	1.1
  +++ build.xml	20 Nov 2004 00:37:04 -0000	1.2
  @@ -20,7 +20,7 @@
     <property name="compile.deprecation" value="true" />
     <property name="compile.optimize" value="true" />
   
  -  <property name="version" value="0.1pre"/>
  +  <property name="version" value="1.0rc1"/>
     <property name="name" value="commons-transaction" />
     <property name="final.name" value="${name}-${version}"/>
   
  @@ -34,7 +34,6 @@
     <property name="java.dir" value="${src.dir}/java"/>
     <property name="test.dir" value="${src.dir}/test"/>
     <property name="lib.dir" value="${basedir}/lib"/>
  -  <property name="docs.dir" value="${basedir}/doc"/>
     <property name="conf.dir" value="${src.dir}/conf"/>
     <property name="example.dir" value="${basedir}/example"/>
   
  @@ -47,7 +46,10 @@
     <property name="build.classes" value="${build.dir}/classes"/>
     <property name="build.lib" value="${build.dir}/lib"/>
     <property name="build.deploy" value="${build.dir}/deploy"/>
  -  <property name="build.javadocs" value="${build.dir}/javadoc"/>
  +  <property name="build.src.dist" value="${build.dir}/src"/>
  +  <property name="build.bin.dist" value="${build.dir}/bin"/>
  +  <property name="build.doc" value="${build.dir}/doc"/>
  +  <property name="build.javadocs" value="${build.doc}/apidocs"/>
   
     <property name="dist.dir" value="${basedir}/dist"/>
     <property name="dist.lib" value="${dist.dir}/lib"/>
  @@ -125,6 +127,8 @@
     <target name="prepare">
       <tstamp />
       <mkdir dir="${build.dir}"/>
  +    <mkdir dir="${build.doc}"/>
  +    <mkdir dir="${build.javadocs}"/>
       <mkdir dir="${build.classes}"/>
       <mkdir dir="${build.lib}"/>
       <mkdir dir="${build.deploy}"/>
  @@ -275,6 +279,7 @@
     -->
     <target name="clean">
       <delete dir="${build.dir}" />
  +    <delete dir="tmp" />
     </target> 
   
     <target name="clean-javadocs">
  @@ -286,6 +291,25 @@
       <delete dir="${dist.deploy}"/>
     </target> 
   
  +    <!-- =================================================================== -->
  +    <!-- Build documentation                                                 -->
  +    <!-- =================================================================== -->
  +    <target name="doc" depends="prepare,javadocs" description="Generate documentation">
  +        <style basedir="xdocs" destdir="${build.doc}" extension=".html" style="xdocs/style/basic.xsl"
includes="*.xml"/>
  +        <style basedir="xdocs/file" destdir="${build.doc}/file" extension=".html" style="xdocs/style/basic.xsl"
includes="*.xml"/>
  +        <style basedir="xdocs/locks" destdir="${build.doc}/locks" extension=".html"
style="xdocs/style/basic.xsl" includes="*.xml"/>
  +        <style basedir="xdocs/maps" destdir="${build.doc}/maps" extension=".html" style="xdocs/style/basic.xsl"
includes="*.xml"/>
  +        <copy todir="${build.doc}">
  +            <fileset dir="xdocs">
  +                <include name="**/*.gif"/>
  +                <include name="**/*.jpg"/>
  +                <include name="**/*.png"/>
  +                <include name="**/*.css"/>
  +                <include name="**/*.sample"/>
  +            </fileset>
  +        </copy>
  +    </target>
  +
     <!-- 
     ===================================================================
     Creates the API documentation                             
  @@ -326,6 +350,100 @@
         <test name="org.apache.commons.transaction.memory.PessimisticMapWrapperTest" haltonfailure="yes"
/>
         <test name="org.apache.commons.transaction.locking.GenericLockTest" haltonfailure="yes"
/>
       </junit>
  +  </target>
  +
  +  <!-- 
  +  ===================================================================
  +  Distributions
  +  =================================================================== 
  +  -->
  +
  +  <target name="dist" depends="scrub,jar,javadocs,doc,test,dist-bin,dist-src" description="Create
distribution">
  +  </target>
  +  
  +  <target name="dist-bin">
  +    <mkdir dir="${build.bin.dist}"/>
  +    <copy todir="${build.bin.dist}">
  +      <fileset dir=".">
  +        <include name="LICENSE.txt"/>
  +        <include name="NOTICE.txt"/>
  +        <include name="README.txt"/>
  +        <include name="RELEASE-NOTES.txt"/>
  +      </fileset>
  +    </copy>
  +    <copy todir="${build.bin.dist}">
  +      <fileset dir="${build.lib}">
  +        <include name="*.jar"/>
  +      </fileset>
  +    </copy>
  +    <copy todir="${build.bin.dist}">
  +      <fileset dir="${build.dir}">
  +        <include name="doc/**"/>
  +      </fileset>
  +    </copy>
  +  </target>
  +  
  +  <target name="dist-src">
  +    <mkdir dir="${build.src.dist}"/>
  +    <copy todir="${build.src.dist}">
  +      <fileset dir=".">
  +        <include name="LICENSE.txt"/>
  +        <include name="NOTICE.txt"/>
  +        <include name="README.txt"/>
  +        <include name="RELEASE-NOTES.txt"/>
  +        <include name="build.properties.sample"/>
  +        <include name="build.xml"/>
  +        <include name="project.xml"/>
  +        <include name="project.properties"/>
  +      </fileset>
  +    </copy>
  +    <copy todir="${build.src.dist}">
  +      <fileset dir="${build.lib}">
  +        <include name="*.jar"/>
  +      </fileset>
  +    </copy>
  +    <copy todir="${build.src.dist}">
  +      <fileset dir=".">
  +        <include name="src/**"/>
  +        <include name="xdocs/**"/>
  +        <include name="example/**"/>
  +      </fileset>
  +    </copy>
  +  </target>
  +
  +<!-- ====================================================================== -->
  +
  +  <target name="package" depends="dist,zip-bin,zip-src" description="Packages distribution">
  +  </target>
  +  
  +  <target name="zip-bin">
  +    <tar longfile="gnu" tarfile="${dist.dir}/${final.name}.tar">
  +      <tarfileset dir="${build.bin.dist}"/>
  +    </tar>
  +    <gzip zipfile="${dist.dir}/${final.name}.tgz" src="${dist.dir}/${final.name}.tar"/>
  +    <delete file="${dist.dir}/${final.name}.tar" />
  +    
  +    <zip zipfile="${dist.dir}/${final.name}.zip" >
  +      <zipfileset dir="${build.bin.dist}"/>
  +    </zip>
  +      
  +    <checksum file="${dist.dir}/${final.name}.tgz"/>
  +    <checksum file="${dist.dir}/${final.name}.zip"/>
  +  </target>
  +
  +  <target name="zip-src">
  +    <tar longfile="gnu" tarfile="${dist.dir}/${final.name}-src.tar">
  +      <tarfileset dir="${build.src.dist}"/>
  +    </tar>
  +    <gzip zipfile="${dist.dir}/${final.name}-src.tgz" src="${dist.dir}/${final.name}-src.tar"/>
  +    <delete file="${dist.dir}/${final.name}-src.tar" />
  +    
  +    <zip zipfile="${dist.dir}/${final.name}-src.zip" >
  +      <zipfileset dir="${build.src.dist}"/>
  +    </zip>
  +      
  +    <checksum file="${dist.dir}/${final.name}-src.tgz"/>
  +    <checksum file="${dist.dir}/${final.name}-src.zip"/>
     </target>
   
   </project>
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message