ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anto...@apache.org
Subject cvs commit: ant build.xml
Date Tue, 17 May 2005 05:03:02 GMT
antoine     2005/05/16 22:03:02

  Modified:    .        build.xml
  Log:
  build the distribution with subdirectories source and binaries like
  the directories on the Apache web site
  
  Revision  Changes    Path
  1.468     +22 -20    ant/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/ant/build.xml,v
  retrieving revision 1.467
  retrieving revision 1.468
  diff -u -r1.467 -r1.468
  --- build.xml	10 May 2005 13:57:48 -0000	1.467
  +++ build.xml	17 May 2005 05:03:02 -0000	1.468
  @@ -123,6 +123,8 @@
      -->
     <property name="dist.name" value="apache-${name}-${version}"/>
     <property name="dist.base" value="distribution"/>
  +  <property name="dist.base.source" value="${dist.base}/source"/>
  +  <property name="dist.base.binaries" value="${dist.base}/binaries"/>
     <property name="dist.dir" value="dist"/>
     <property name="dist.bin" value="${dist.dir}/bin"/>
     <property name="dist.lib" value="${dist.dir}/lib"/>
  @@ -1192,14 +1194,14 @@
       <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="${dist.base.source}"/>
  +    <mkdir dir="${dist.base.binaries}"/>
       <mkdir dir="${java-repository.dir}"/>
   
       <antcall inheritAll="false" target="internal_dist">
         <param name="dist.dir" value="${dist.name}"/>
       </antcall>
  -    <zip destfile="${dist.base}/bin/${dist.name}-bin.zip">
  +    <zip destfile="${dist.base.binaries}/${dist.name}-bin.zip">
         <zipfileset dir="${dist.name}/.." filemode="755">
           <include name="${dist.name}/bin/ant"/>
           <include name="${dist.name}/bin/antRun"/>
  @@ -1215,7 +1217,7 @@
         </fileset>
       </zip>
       <tar longfile="gnu"
  -      destfile="${dist.base}/bin/${dist.name}-bin.tar">
  +      destfile="${dist.base.binaries}/${dist.name}-bin.tar">
         <tarfileset dir="${dist.name}/.." mode="755" username="ant" group="ant">
           <include name="${dist.name}/bin/ant"/>
           <include name="${dist.name}/bin/antRun"/>
  @@ -1230,11 +1232,11 @@
           <exclude name="${dist.name}/bin/*.py"/>
         </tarfileset>
       </tar>
  -    <gzip destfile="${dist.base}/bin/${dist.name}-bin.tar.gz"
  -      src="${dist.base}/bin/${dist.name}-bin.tar"/>
  -    <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"/>
  +    <gzip destfile="${dist.base.binaries}/${dist.name}-bin.tar.gz"
  +      src="${dist.base.binaries}/${dist.name}-bin.tar"/>
  +    <bzip2 destfile="${dist.base.binaries}/${dist.name}-bin.tar.bz2"
  +      src="${dist.base.binaries}/${dist.name}-bin.tar"/>
  +    <delete file="${dist.base.binaries}/${dist.name}-bin.tar"/>
   
       <copy todir="${java-repository.dir}">
         <fileset dir="${dist.name}/lib">
  @@ -1251,14 +1253,14 @@
       
       <delete dir="${dist.name}"/>
       <checksum fileext=".md5">
  -      <fileset dir="${dist.base}/bin/">
  +      <fileset dir="${dist.base.binaries}/">
           <include name="**/*"/>
           <exclude name="**/*.asc"/>
           <exclude name="**/*.md5"/>
         </fileset>
       </checksum>
       <checksum fileext=".sha1" algorithm="SHA">
  -      <fileset dir="${dist.base}/bin/">
  +      <fileset dir="${dist.base.binaries}/">
           <include name="**/*"/>
           <exclude name="**/*.asc"/>
           <exclude name="**/*.md5"/>
  @@ -1268,7 +1270,7 @@
       <antcall inheritAll="false" target="src-dist">
         <param name="src.dist.dir" value="${dist.name}"/>
       </antcall>
  -    <zip destfile="${dist.base}/src/${dist.name}-src.zip">
  +    <zip destfile="${dist.base.source}/${dist.name}-src.zip">
         <zipfileset dir="${dist.name}/.." filemode="755">
           <include name="${dist.name}/bootstrap.sh"/>
           <include name="${dist.name}/build.sh"/>
  @@ -1280,7 +1282,7 @@
         </fileset>
       </zip>
       <tar longfile="gnu"
  -      destfile="${dist.base}/src/${dist.name}-src.tar">
  +      destfile="${dist.base.source}/${dist.name}-src.tar">
         <tarfileset dir="${dist.name}/.." mode="755" username="ant" group="ant">
           <include name="${dist.name}/bootstrap.sh"/>
           <include name="${dist.name}/build.sh"/>
  @@ -1291,21 +1293,21 @@
           <exclude name="${dist.name}/build.sh"/>
         </tarfileset>
       </tar>
  -    <gzip destfile="${dist.base}/src/${dist.name}-src.tar.gz"
  -      src="${dist.base}/src/${dist.name}-src.tar"/>
  -    <bzip2 destfile="${dist.base}/src/${dist.name}-src.tar.bz2"
  -      src="${dist.base}/src/${dist.name}-src.tar"/>
  -    <delete file="${dist.base}/src/${dist.name}-src.tar"/>
  +    <gzip destfile="${dist.base.source}/${dist.name}-src.tar.gz"
  +      src="${dist.base.source}/${dist.name}-src.tar"/>
  +    <bzip2 destfile="${dist.base.source}/${dist.name}-src.tar.bz2"
  +      src="${dist.base.source}/${dist.name}-src.tar"/>
  +    <delete file="${dist.base.source}/${dist.name}-src.tar"/>
       <delete dir="${dist.name}"/>
       <checksum fileext=".md5">
  -      <fileset dir="${dist.base}/src/">
  +      <fileset dir="${dist.base.source}/">
           <include name="**/*"/>
           <exclude name="**/*.asc"/>
           <exclude name="**/*.md5"/>
         </fileset>
       </checksum>
       <checksum fileext=".sha1" algorithm="SHA">
  -      <fileset dir="${dist.base}/src/">
  +      <fileset dir="${dist.base.source}/">
           <include name="**/*"/>
           <exclude name="**/*.asc"/>
           <exclude name="**/*.md5"/>
  
  
  

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


Mime
View raw message