ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject cvs commit: ant build.xml
Date Tue, 10 May 2005 13:57:48 GMT
bodewig     2005/05/10 06:57:48

  Modified:    .        build.xml
  Log:
  Add SHA1 checksums, prepare stuff for http://www.apache.org/dist/java-repository/
  
  Revision  Changes    Path
  1.467     +32 -0     ant/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/ant/build.xml,v
  retrieving revision 1.466
  retrieving revision 1.467
  diff -u -r1.466 -r1.467
  --- build.xml	24 Mar 2005 08:29:42 -0000	1.466
  +++ build.xml	10 May 2005 13:57:48 -0000	1.467
  @@ -135,6 +135,8 @@
     <property name="src.dist.docs" value="${src.dist.dir}/docs"/>
     <property name="src.dist.lib" value="${src.dist.dir}/lib"/>
   
  +  <property name="java-repository.dir" value="java-repository/ant/jars"/>
  +
     <!--
          ===================================================================
            Set up selectors to be used by javac, junit and jar to exclude
  @@ -1188,9 +1190,11 @@
     <target name="main_distribution"
       description="--> creates the zip and tar distributions">
       <delete dir="${dist.name}"/>
  +    <delete dir="${java-repository.dir}"/>
       <mkdir dir="${dist.base}"/>
       <mkdir dir="${dist.base}/src"/>
       <mkdir dir="${dist.base}/bin"/>
  +    <mkdir dir="${java-repository.dir}"/>
   
       <antcall inheritAll="false" target="internal_dist">
         <param name="dist.dir" value="${dist.name}"/>
  @@ -1231,6 +1235,20 @@
       <bzip2 destfile="${dist.base}/bin/${dist.name}-bin.tar.bz2"
         src="${dist.base}/bin/${dist.name}-bin.tar"/>
       <delete file="${dist.base}/bin/${dist.name}-bin.tar"/>
  +
  +    <copy todir="${java-repository.dir}">
  +      <fileset dir="${dist.name}/lib">
  +        <include name="ant*.jar"/>
  +      </fileset>
  +      <mapper type="glob" from="*.jar" to="*-${version}.jar"/>
  +    </copy>
  +    <checksum fileext=".md5">
  +      <fileset dir="${java-repository.dir}" includes="*${version}.jar"/>
  +    </checksum>
  +    <checksum fileext=".sha1" algorithm="SHA">
  +      <fileset dir="${java-repository.dir}" includes="*${version}.jar"/>
  +    </checksum>
  +    
       <delete dir="${dist.name}"/>
       <checksum fileext=".md5">
         <fileset dir="${dist.base}/bin/">
  @@ -1239,6 +1257,13 @@
           <exclude name="**/*.md5"/>
         </fileset>
       </checksum>
  +    <checksum fileext=".sha1" algorithm="SHA">
  +      <fileset dir="${dist.base}/bin/">
  +        <include name="**/*"/>
  +        <exclude name="**/*.asc"/>
  +        <exclude name="**/*.md5"/>
  +      </fileset>
  +    </checksum>
   
       <antcall inheritAll="false" target="src-dist">
         <param name="src.dist.dir" value="${dist.name}"/>
  @@ -1279,6 +1304,13 @@
           <exclude name="**/*.md5"/>
         </fileset>
       </checksum>
  +    <checksum fileext=".sha1" algorithm="SHA">
  +      <fileset dir="${dist.base}/src/">
  +        <include name="**/*"/>
  +        <exclude name="**/*.asc"/>
  +        <exclude name="**/*.md5"/>
  +      </fileset>
  +    </checksum>
     </target>
   
     <target name="distribution" depends="main_distribution"
  
  
  

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


Mime
View raw message