jakarta-taglibs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From felip...@apache.org
Subject cvs commit: jakarta-taglibs/standard build.xml
Date Tue, 02 Mar 2004 04:08:52 GMT
felipeal    2004/03/01 20:08:52

  Modified:    standard build.xml
  Log:
  added release target
  
  Revision  Changes    Path
  1.41      +30 -0     jakarta-taglibs/standard/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-taglibs/standard/build.xml,v
  retrieving revision 1.40
  retrieving revision 1.41
  diff -u -r1.40 -r1.41
  --- build.xml	28 Feb 2004 06:18:48 -0000	1.40
  +++ build.xml	2 Mar 2004 04:08:52 -0000	1.41
  @@ -5,6 +5,9 @@
     <!-- =================================================================== -->
   
     <property name="standard-version" value="1.1.0" />
  +  <property name="release.name" value="jakarta-taglibs-standard-${standard-version}"
/>
  +  <property name="release.pre" value="nop" />
  +  <property name="release.post" value="nop" />
   
     <!-- =================================================================== -->
     <!-- Inherited properties                                                -->
  @@ -438,5 +441,32 @@
     <target name="copyIfPropSetNot" unless="prop.specified">
       <echo message="  Ignoring copy of ${prop} because property is not set."/>
     </target>  
  +
  +  <!-- =================================================================== -->
  +  <!-- Perform an official release -->
  +  <!-- =================================================================== -->
  +  <target name="release" depends="dist">
  +    <mkdir dir="${release.dir}"/>
  +    <antcall target="${release.pre}"/>
  +    <!-- Copy the taglib to the release dir -->
  +    <copy todir="${release.dir}" >
  +      <fileset dir="${dist.dir}/${taglib.name}" excludes="doc/**"/>
  +    </copy>
  +    <copy file="../LICENSE"   tofile="${release.dir}/LICENSE"/>
  +    <copy file="../NOTICE"    tofile="${release.dir}/NOTICE"/>
  +    <copy file="../README"    tofile="${release.dir}/README"/>
  +    <zip zipfile="${dist.dir}/${release.name}.zip"
  +       basedir="${dist.dir}" includes="${release.name}/**"/>
  +    <tar tarfile="${dist.dir}/${release.name}.tar"
  +       basedir="${dist.dir}" includes="${release.name}/**"/>
  +    <gzip zipfile="${dist.dir}/${release.name}.tar.gz"
  +          src="${dist.dir}/${release.name}.tar"/>
  +    <delete dir="${dist.dir}/${release.name}"/> 
  +    <delete file="${dist.dir}/${release.name}.tar"/> 
  +    <antcall target="${release.post}"/>
  +  </target>
  +
  +  <!-- target that does nothing -->
  +  <target name="nop"/>
   
   </project>
  
  
  

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


Mime
View raw message