You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@beehive.apache.org by Will Pugh <wi...@bea.com> on 2004/07/21 00:06:52 UTC
Added targets to build.xml to create source archives
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"/>
Re: Added targets to build.xml to create source archives
Posted by Eddie O'Neil <ek...@bea.com>.
Will--
I totally agree that we should add targets for zip / tar archives of
the source.
That being said, can we drop them into a $BEEHIVE_HOME/build/
sub-directory so that it's possible to do a clean of Beehive simply by
deleting build/ directories so that we're sure to catch all generated
files? Something like this has worked out well in the past for writing
simple "clean" targets.
Eddie
Will Pugh wrote:
>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"/>
>
>
>
>
>