beehive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Will Pugh" <willp...@bea.com>
Subject Added targets to build.xml to create source archives
Date Tue, 20 Jul 2004 22:06:52 GMT
Hey folks,

Not sure when we want to do this, but I assume we want to start getting source onto http://incubator.apache.org/beehive

assuming we would need some ANT targets to do this, I build
    zipsrc  --  zips the source into a zip file
    tarsrc  --   puts the source in a tar.gz file
    archivesrc -- does a clean, then calls tarsrc and zipsrc

NOTE:  This is on the root build.xml (the one in trunk)
Not being a committer, I'm not sure what the process is for getting these in, but here are
the diffs:

Index: build.xml
===================================================================
--- build.xml   (revision 23085)
+++ build.xml   (working copy)
@@ -152,6 +152,24 @@
         <unzip src="${jsr173.installer}" dest="${beehive.installed.dir}/jsr173"/>
     </target>

+    <target name="zipsrc" description="Creates a zip file with all the source in it">
+        <zip basedir="${beehive.dir}" destfile="${beehive.dir}/beehive-src.zip"
+               excludes="beehive-src.zip,beehive-src.tar.gz">
+        </zip>
+
+    </target>
+
+    <target name="tarsrc" description="Tars and Zips the source">
+        <tar tarfile="${beehive.dir}/beehive-src.tar" basedir="${beehive.dir}"
+               excludes="beehive-src.zip,beehive-src.tar.gz" />
+
+        <gzip zipfile="${beehive.dir}/beehive-src.tar.gz" src="${beehive.dir}/beehive-src.tar"
/>
+        <delete file="${beehive.dir}/beehive-src.tar"  />
+    </target>
+
+    <target name="archivesrc" description="Creates a zip + a tar.gz of the source"
+         depends="clean,tarsrc,zipsrc" />
+
     <target name="usage" description="Print the usage for this build.xml">
         <java fork="no" classname="org.apache.tools.ant.Main">
             <arg line="-projecthelp"/>



Mime
View raw message