beehive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eddie O'Neil" <ekon...@bea.com>
Subject Re: Added targets to build.xml to create source archives
Date Wed, 21 Jul 2004 09:10:19 GMT

  This is probably worth spinning up another thread on, but here are 
some initial thoughts...

  The top-level build directory should probably be used for the result 
of spinning a Beehive distribution -- the shape of which has yet to be 
determined.  But, whatever this is, $BEEHIVE_HOME/build(/dist?) seems 
like the best place to put the distribution itself.  Then, it can be 
uploaded wherever it needs to go to be available from the website 
(anyone have any idea where this is?).

  Seems that it's good for the sub-projects to still use their own, 
local build directories to output their build artifacts, which will vary 
between sub-projects.  In NetUI's case, the result of the build are 
several things -- a webapp template, an APT-based JPF compiler, and some 
build infrastructure to help with building webapps with JPFs / controls 
/ XSDs.  In the near future, we'll probably be adding samples and 
Javadoc to a NetUI (and larger Beehive) distribution as well. 

  Once we've settled on a distribution format (directory layout, etc), 
the top-level build can pull the requisite pieces from the sub-projects 
into $BEEHIVE_HOME/build.

  As far as the one JAR idea, we haven't planned on rolling all of 
Beehive together into a single JAR -- at the very least, there are two 
categories of JAR, one for controls and one for NetUI since the former 
doesn't require the latter.

  Additional thoughts welcome...

Eddie


 

Will Pugh wrote:

>Sounds good to me.
>
>Here's the diff with them going into %BEEHIVE_HOME%/build, and clean now deletes that
directory.  
>
>However, this brings up another point.  Nothing else uses this build directory.  Do we
have plans for creating a single Beehive Jar?  Should we use this directory for at least collecting
all the jars that are created in the sub-project builds?
>
>	--Will
>
>DIFF:
>Index: build.xml
>===================================================================
>--- build.xml   (revision 23104)
>+++ build.xml   (working copy)
>@@ -8,6 +8,11 @@
>     <property environment="os"/>
>     <property file="beehive.properties"/>
>
>+    <!-- Build directory the src archives go into -->
>+    <property name="build.dir" value="build"/>
>+    <property name="archive.dir" value="${build.dir}"/>
>+
>+
>     <!-- Local properties used to specify the installers and the directories into
which they should be installed -->
>     <property name="tomcat.installer" location="${beehive.external.dir}/tomcat/jakarta-tomcat-5.0.25.zip"/>
>     <property name="log4j.installer" location="${beehive.external.dir}/log4j/jakarta-log4j-1.2.8.zip"/>
>@@ -33,6 +38,7 @@
>     <target name="clean" description="Clean Beehive">
>         <ant dir="controls" target="clean" inheritAll="false"/>
>         <ant dir="netui" target="clean" inheritAll="false"/>
>+        <delete dir="${build.dir}"/>
>     </target>
>
>     <target name="deploy" description="Deploy Beehive">
>@@ -152,6 +158,33 @@
>         <unzip src="${jsr173.installer}" dest="${beehive.installed.dir}/jsr173"/>
>     </target>
>
>+
>+    <!-- ============================================= -->
>+    <!--                                               -->
>+    <!-- Targets for zipping src              -->
>+    <!--                                               -->
>+    <!-- ============================================= -->
>+    <target name="zipsrc" depends="dirs" description="Creates a zip file with all
the source in it">
>+        <zip basedir="${beehive.dir}" destfile="${archive.dir}/beehive-src.zip"
>+               excludes="${archive.dir}/beehive-src.zip,${archive.dir}/beehive-src.tar.gz">
>+        </zip>
>+    </target>
>+
>+    <target name="tarsrc" depends="dirs" description="Tars and Zips the source">
>+        <tar tarfile="${archive.dir}/beehive-src.tar" basedir="${beehive.dir}"
>+               excludes="${archive.dir}/beehive-src.zip,${archive.dir}/beehive-src.tar.gz"
/>
>+
>+        <gzip zipfile="${archive.dir}/beehive-src.tar.gz" src="${archive.dir}/beehive-src.tar"
/>
>+        <delete file="${archive.dir}/beehive-src.tar"  />
>+    </target>
>+
>+    <target name="archivesrc" description="Creates a zip + a tar.gz of the source"
>+         depends="clean,tarsrc,zipsrc" />
>+
>+    <target name="dirs">
>+       <mkdir dir="${build.dir}"/>
>+    </target>
>+
>     <target name="usage" description="Print the usage for this build.xml">
>         <java fork="no" classname="org.apache.tools.ant.Main">
>             <arg line="-projecthelp"/>
>
>-----Original Message-----
>From: Eddie O'Neil 
>Sent: Tuesday, July 20, 2004 7:37 PM
>To: Beehive Developers
>Subject: Re: Added targets to build.xml to create source archives
>
>
>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"/>
>>
>>
>>
>> 
>>
>>    
>>
>
>  
>

Mime
View raw message