avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From blorit...@apache.org
Subject cvs commit: jakarta-avalon-excalibur/instrument build.xml
Date Wed, 31 Jul 2002 14:11:10 GMT
bloritsch    2002/07/31 07:11:10

  Modified:    instrument build.xml
  Log:
  update build so that it generates full dist
  
  Revision  Changes    Path
  1.34      +56 -18    jakarta-avalon-excalibur/instrument/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-excalibur/instrument/build.xml,v
  retrieving revision 1.33
  retrieving revision 1.34
  diff -u -r1.33 -r1.34
  --- build.xml	30 Jul 2002 23:19:36 -0000	1.33
  +++ build.xml	31 Jul 2002 14:11:09 -0000	1.34
  @@ -392,24 +392,13 @@
       </target>
   
       <!-- Creates the distribution -->
  -    <target name="dist"
  -        depends="dist-jar, test-reports, checkstyle-report, site"
  -        description="Generates a distribution (jar + docs + javadocs + unit tests + checkstyle
reports)">
  -
  -
  -        <copy file="${build.conf}/LICENSE.txt" todir="${dist.dir}"/>
  -        <copy file="../KEYS" todir="${dist.dir}"/>
  -
  -        <mkdir dir="${dist.base}"/>
  -
  +    <target name="dist-bin">
           <zip zipfile="${dist.base}/${dist.name}-bin.zip" compress="true">
               <zipfileset dir="${dist.dir}" prefix="${dist.name}"/>
               <zipfileset dir="${docs.dir}" prefix="${dist.name}/docs"/>
           </zip>
   
  -        <!--
  -          Not supported by released ant but when it is we should enable this across
  -          all of the products
  +	<!--
           <tar longfile="gnu" tarfile="${dist.base}/${dist.name}-bin.tar">
             <tarfileset dir="${dist.dir}"
                         prefix="${dist.name}"
  @@ -418,17 +407,66 @@
           </tar>
   
           <gzip zipfile="${dist.base}/${dist.name}-bin.tar.gz"
  -              src="${dist.name}-bin.tar"/>
  -        <bzip2 zipfile="${dist.base}/${dist.name}-bin.tar.gz"
  +		src="${dist.name}-bin.tar"/>
  +	
  +        <bzip2 zipfile="${dist.base}/${dist.name}-bin.tar.bz2"
                  src="${dist.name}-bin.tar"/>
   
  -        <delete file="${dist.base}/${dist.name}-bin.tar"/>
  +       <delete file="${dist.base}/${dist.name}-bin.tar"/>
  +       -->
  +    </target>
  +
  +    <target name="dist-src">
  +        <zip zipfile="${dist.base}/${dist.name}-src.zip" compress="true">
  +	    <zipfileset dir="${dist.dir}" prefix="${dist.name}"/>
  +	    <zipfileset dir="${basedir}" prefix="${dist.name}" includes="*.xml,*.properties"/>
  +	    <zipfileset dir="${src.dir}" prefix="${dist.name}/src"/>
  +            <zipfileset dir="${docs.dir}" prefix="${dist.name}/docs"/>
  +        </zip>
  +
  +	<!--
  +        <tar longfile="gnu" tarfile="${dist.base}/${dist.name}-src.tar">
  +          <tarfileset dir="${dist.dir}"
  +                      prefix="${dist.name}"
  +                      username="avalon"
  +                      group="avalon"/>
  +          <tarfileset dir="$docs.dir}"
  +		  prefix="${dist.name}/docs"
  +                      username="avalon"
  +		      group="avalon"/>
  +          <tarfileset dir="${src.dir}"
  +		  prefix="${dist.name}/src"
  +                      username="avalon"
  +		      group="avalon"/>
  +      </tar>
  +
  +        <gzip zipfile="${dist.base}/${dist.name}-src.tar.gz"
  +		src="${dist.name}-bin.tar"/>
  +	
  +        <bzip2 zipfile="${dist.base}/${dist.name}-src.tar.bz2"
  +		src="${dist.name}-bin.tar"/>
  +
  +	<delete file="${dist.base}/${dist.name}-src.tar"/>
  +	-->
  +    </target>
  +
  +    <target name="prepare-dist"
  +	    depends="test-reports, checkstyle-report, site">
  +
  +
  +        <copy file="${build.conf}/LICENSE.txt" todir="${dist.dir}"/>
  +        <copy file="../KEYS" todir="${dist.dir}"/>
  +
  +        <mkdir dir="${dist.base}"/>
  +    </target>
  +
  +    <target name="dist"
  +	    depends="prepare-dist, dist-src, dist-jar, dist-bin, clean"
  +	    description="Generates a distribution (jar + docs + javadocs + unit tests + checkstyle
reports)">
   
           <checksum fileext=".md5">
             <fileset dir="${dist.base}" />
           </checksum>
  -        -->
  -        <delete dir="${dist.dir}" />
   
       </target>
   
  
  
  

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


Mime
View raw message