You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hivemind.apache.org by hl...@apache.org on 2005/10/11 15:53:54 UTC

svn commit: r312883 - /jakarta/hivemind/branches/branch-1-1/hivebuild/dist.xml

Author: hlship
Date: Tue Oct 11 06:53:51 2005
New Revision: 312883

URL: http://svn.apache.org/viewcvs?rev=312883&view=rev
Log:
Split up the dist-build target so that just documentation can be built.

Modified:
    jakarta/hivemind/branches/branch-1-1/hivebuild/dist.xml

Modified: jakarta/hivemind/branches/branch-1-1/hivebuild/dist.xml
URL: http://svn.apache.org/viewcvs/jakarta/hivemind/branches/branch-1-1/hivebuild/dist.xml?rev=312883&r1=312882&r2=312883&view=diff
==============================================================================
--- jakarta/hivemind/branches/branch-1-1/hivebuild/dist.xml (original)
+++ jakarta/hivemind/branches/branch-1-1/hivebuild/dist.xml Tue Oct 11 06:53:51 2005
@@ -24,23 +24,25 @@
 	
 	<target name="dist" description="Build a distribution." depends="clean,install,site,dist-build"/>
 	
-	<target name="dist-build" description="Constructs final distribution files.">
+	<target name="-dist-build-setup">
 		<mkdir dir="${dist.dir}"/>
 		
 		<fail unless="dist.name"
-				message="You must provide a value for property property dist.name."/>
-				
+			message="You must provide a value for property property dist.name."/>			
+	</target>
+	
+	<target name="dist-build-distros" description="Constructs final distribution files." depends="-dist-build-setup">
 		<announce message="Assembling binary/src distribution (.tar.gz format) ..."/>
 		
 		<tar destfile="${dist.basefile}.tar.gz"
 			compression="gzip">
-						
+			
 			<tarfileset dir="." prefix="${dist.base.name}" excludes="${dist.project.excludes}">
 				<exclude name="**/target/**"/>
-        
-        <!-- Left around by Forrest -->
-        
-        <exclude name="build/**"/>
+				
+				<!-- Left around by Forrest -->
+				
+				<exclude name="build/**"/>
 				<exclude name="target/**"/>
 				<exclude name="ext-package/**"/>
 				
@@ -66,13 +68,13 @@
 		<zip destfile="${dist.basefile}.zip">						
 			<zipfileset dir="." prefix="${dist.base.name}/" excludes="${dist.project.excludes}">
 				<exclude name="**/target/**"/>
-        
-        <!-- Sorry about the cut-n-paste.  zip task just doesn't understand the prefix attribute
-             of tarfileset, even though zipfileset has a prefix attribute as well. -->
-             
-        <!-- Left around by Forrest -->
-        
-        <exclude name="build/**"/>
+				
+				<!-- Sorry about the cut-n-paste.  zip task just doesn't understand the prefix attribute
+					of tarfileset, even though zipfileset has a prefix attribute as well. -->
+				
+				<!-- Left around by Forrest -->
+				
+				<exclude name="build/**"/>
 				<exclude name="target/**"/>
 				<exclude name="ext-package/**"/>
 				
@@ -92,21 +94,25 @@
 				<include name="*.jar"/>
 			</zipfileset>			
 		</zip>		
-		
-		<announce message="Assembling documentation distribution ..."/>
+	</target>
 
+	<target name="dist-build-docs" description="Build documentation distribution" depends="-dist-build-setup">
+		<announce message="Assembling documentation distribution ..."/>
+		
 		<tar destfile="${dist.dir}/${dist.docs.file}" compression="gzip">
 			<tarfileset dir="${project.docs.target.dir}"/>
 		</tar>
 		
 		<checksum fileext=".md5">
-		  <fileset dir="${dist.dir}">
-		  	<include name="*.zip"/>
-		  	<include name="*.gz"/>
-		  </fileset>
-		</checksum>
-    
-    <announce message="You should sign the release files (in target/dist) using GPG before invoking the install-dist target."/>
+			<fileset dir="${dist.dir}">
+				<include name="*.zip"/>
+				<include name="*.gz"/>
+			</fileset>
+		</checksum>				
+	</target>	
+	
+	<target name="dist-build" description="Constructs final distribution files." depends="dist-build-distros,dist-build-docs">
+    	<announce message="You should sign the release files (in target/dist) using GPG before invoking the install-dist target."/>
 	</target>
 
 	



---------------------------------------------------------------------
To unsubscribe, e-mail: hivemind-cvs-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-cvs-help@jakarta.apache.org