commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rwaldh...@apache.org
Subject cvs commit: jakarta-commons/pool build.xml
Date Sat, 04 May 2002 13:24:19 GMT
rwaldhoff    02/05/04 06:24:19

  Modified:    pool     build.xml
  Log:
  add dist-src target
  
  Revision  Changes    Path
  1.11      +37 -0     jakarta-commons/pool/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/pool/build.xml,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- build.xml	4 May 2002 13:10:54 -0000	1.10
  +++ build.xml	4 May 2002 13:24:19 -0000	1.11
  @@ -1,4 +1,4 @@
  -<!-- $Id: build.xml,v 1.10 2002/05/04 13:10:54 rwaldhoff Exp $ -->
  +<!-- $Id: build.xml,v 1.11 2002/05/04 13:24:19 rwaldhoff Exp $ -->
   <project name="commons-pool" default="test" basedir=".">
   
      <!-- patternset describing files to be copied from the doc directory -->
  @@ -305,6 +305,43 @@
           <zipfileset dir="${workdir}" />
         </zip>
         
  +      <delete dir="${workdir}"/>
  +   
  +   </target>
  +
  +   <!-- ######################################################### -->
  +
  +   <target name="dist-src" depends="init">
  +   
  +      <!-- not executed in default dist, because it is configuration-rich
  +        and requires an active network connection -->
  +                       
  +      <mkdir dir="${workdir}"/>
  +      <mkdir dir="${dest.jardir}"/>
  +
  +      <cvs dest="${workdir}" cvsRoot="${cvs.root}" 
  +          package="jakarta-commons" tag="${cvs.tag}"/>
  +      <move toDir="${workdir}/${src.name}">
  +        <fileset dir="${workdir}/jakarta-commons/collections"/>
  +      </move>
  +      <delete dir="${workdir}/jakarta-commons"/> 
  +      <copy file="./LICENSE" toDir="${workdir}/${src.name}"/>
  +      
  +      <!-- create tar.gz -->
  +      <tar longfile="gnu" tarfile="${dest.src.tar}">
  +        <tarfileset dir="${workdir}"/>
  +      </tar>
  +      
  +      <gzip zipfile="${dest.src.tar.gz}"
  +      	    src="${dest.src.tar}">
  +      </gzip>
  +      <delete file="${dest.src.tar}" />
  +      
  +      <!-- create a zip file -->
  +      <zip zipfile="${dest.src.zip}" >
  +        <zipfileset dir="${workdir}" />
  +      </zip>
  +             
         <delete dir="${workdir}"/>
      
      </target>
  
  
  

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


Mime
View raw message