incubator-xap-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bbuff...@apache.org
Subject svn commit: r643569 - /incubator/xap/trunk/buildsystem/build-manufacturing.xml
Date Tue, 01 Apr 2008 21:06:06 GMT
Author: bbuffone
Date: Tue Apr  1 14:05:54 2008
New Revision: 643569

URL: http://svn.apache.org/viewvc?rev=643569&view=rev
Log:
updated the build script to have the both source and dist outputs. 

Modified:
    incubator/xap/trunk/buildsystem/build-manufacturing.xml

Modified: incubator/xap/trunk/buildsystem/build-manufacturing.xml
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/buildsystem/build-manufacturing.xml?rev=643569&r1=643568&r2=643569&view=diff
==============================================================================
--- incubator/xap/trunk/buildsystem/build-manufacturing.xml (original)
+++ incubator/xap/trunk/buildsystem/build-manufacturing.xml Tue Apr  1 14:05:54 2008
@@ -30,7 +30,7 @@
 	<!--
 	    VERSION NUMBER FOR THE RELEASE
 	 -->
-	<property name="version" value="0.3.0"/>
+	<property name="version" value="0.5.0-incubator"/>
 	 
     <!--  
     TODO
@@ -52,12 +52,14 @@
     <property name="staging.dist.location" value="${staging.location}/.dist"/>	
     <property name="staging.dist.output.location" value="${staging.dist.location}/output"/>

     <property name="staging.dist.docs.location" value="${staging.dist.location}/docs"/>

-    <property name="zap-prefix" value="xap"/>
+    <property name="xap-prefix" value="xap"/>
     
     <property name="dist.location" value="../.dist"/>
     <property name="package.output.location" value="${dist.location}/package/"/>
-    <property name="zap-framework" value="apache-xap-ajax-framework-${version}.zip"/>
-    <property name="zap-framework-tar" value="apache-xap-ajax-framework-${version}.tar"/>
+    <property name="xap-framework" value="apache-xap-ajax-framework-${version}.zip"/>
+    <property name="xap-framework-tar" value="apache-xap-ajax-framework-${version}.tar"/>
+    <property name="xap-codebase" value="apache-xap-ajax-codebase-${version}.zip"/>
+    <property name="xap-codebase-tar" value="apache-xap-ajax-codebase-${version}.tar"/>
 	
     <property name="browserFileNames" value="C:\Program Files\mozilla.org\Mozilla\mozilla.exe,C:\Program
Files\Internet Explorer\iexplore.exe"/>    
     
@@ -165,12 +167,6 @@
     	    <zipfileset dir="${staging.codebase.location}" prefix="dist/${dir-prefix}" includes="css/**"/>
             <zipfileset dir="${staging.dist.output.location}" prefix="dist/${dir-prefix}/lib"
includes="**/*"/>
     	    <zipfileset dir="${staging.buildsystem.seed.location}" prefix="dist/" includes="**"/>
-    	    
-    	    <!--
-    	        Add all the source.
-    	    -->
-    	    <zipfileset dir="${staging.location}" prefix="source/" 
-    	        includes="**" excludes=".dist/**,buildsystem/JSDoc-1.9.9.2/**,unittests/**"/>

     	                   	        	    
     	    <!--
     	        Add the samples.
@@ -192,6 +188,18 @@
     	</zip> 
     	    	   	
     </target>
+        <target name="-build-codebase-zip" description="builds codebase zip">
+            <mkdir dir="${zipDir}"/>        
+          
+        	<zip destfile="${zipDir}/${zipName}">
+        	    <!--
+        	        Add all the source.
+        	    -->
+        	    <zipfileset dir="${staging.location}" includes="**" excludes=".dist/**,buildsystem/build-manufacturing.xml"/>
	  
+        	        	        	    
+        	</zip> 
+        	    	   	
+    </target>
        
 	<!-- 
 		Build a tar file of the redistruable files for the project
@@ -209,12 +217,6 @@
 		    <tarfileset dir="${staging.buildsystem.seed.location}" prefix="dist/" includes="**"/>
 		    
 		    <!--
-		        Add all the source.
-		    -->
-		    <tarfileset dir="${staging.location}" prefix="source/" 
-		        includes="**" excludes=".dist/**,buildsystem/JSDoc-1.9.9.2/**,unittests/jsunit/**"/>
-		    
-		    <!--
 		        Add the samples.
 		    -->
 		    <tarfileset dir="${staging.location}/.dist/samples/xap/" prefix="samples/" 
@@ -234,6 +236,19 @@
 		    <tarfileset dir="${staging.location}" includes="NOTICE.txt"/>    	        	 
  
 		</tar> 				
 	</target>
+	
+	<target name="-build-codebase-tar" description="builds codebase tar">		
+			<mkdir dir="${zipDir}"/>   
+			     
+			<tar destfile="${zipDir}/${zipName}">
+			    
+			    <!--
+			        Add all the source.
+			    -->
+			    <tarfileset dir="${staging.location}" includes="**" excludes=".dist/**,buildsystem/build-manufacturing.xml"/>
+			       	        	    
+			</tar> 				
+	</target>
 	    
     <target name="build-xap" description="build xap">
     	<!-- delete the dist directory in staging. -->
@@ -241,7 +256,7 @@
 
     	<antcall target="-copy-xap"/>
     	        
-		<antcall target="-tests">
+	<antcall target="-tests">
             <param name="testPage" value="XapUnitTestSuite.html"/>
         </antcall>
         
@@ -270,26 +285,47 @@
         <gzip src="${staging.dist.output.location}/xapcore.js" destfile="${staging.dist.output.location}/xapcore.js.gz"/>
     	
     	<antcall target="-build-dist-zip">
-        	<param name="zipName" value="${zap-framework}"/>
-        	<param name="dir-prefix" value="${zap-prefix}"/>
+        	<param name="zipName" value="${xap-framework}"/>
+        	<param name="dir-prefix" value="${xap-prefix}"/>
     	    <param name="zipDir" value="${package.output.location}"/>
         	<param name="seed-dir" value="seed"/>        	
         </antcall>
         
     	<antcall target="-build-dist-tar">
-    		<param name="zipName" value="${zap-framework-tar}"/>
-    		<param name="dir-prefix" value="${zap-prefix}"/>
+    		<param name="zipName" value="${xap-framework-tar}"/>
+    		<param name="dir-prefix" value="${xap-prefix}"/>
     	    <param name="zipDir" value="${package.output.location}"/>
     		<param name="seed-dir" value="seed"/>        	
     	</antcall>
-    	    	
-        <gzip src="${package.output.location}/${zap-framework-tar}" destfile="${package.output.location}/${zap-framework-tar}.gz"/>
     	
+    	<antcall target="-build-codebase-zip">
+        	<param name="zipName" value="${xap-codebase}"/>
+        	<param name="dir-prefix" value="${xap-prefix}"/>
+    	    <param name="zipDir" value="${package.output.location}"/>
+        	<param name="seed-dir" value="seed"/>        	
+        </antcall>
+        
+    	<antcall target="-build-codebase-tar">
+    		<param name="zipName" value="${xap-codebase-tar}"/>
+    		<param name="dir-prefix" value="${xap-prefix}"/>
+    	    <param name="zipDir" value="${package.output.location}"/>
+    		<param name="seed-dir" value="seed"/>        	
+    	</antcall>
+    	    	
+        <gzip src="${package.output.location}/${xap-framework-tar}" destfile="${package.output.location}/${xap-framework-tar}.gz"/>
+    	<gzip src="${package.output.location}/${xap-codebase-tar}" destfile="${package.output.location}/${xap-codebase-tar}.gz"/>
     	<!-- create the checksum's for the distribution files -->
     	
     	<!-- MD5 versions of the check sum -->
-        <checksum file="${package.output.location}/${zap-framework}" forceOverwrite="yes"
fileext=".md5"/>
-        <checksum file="${package.output.location}/${zap-framework-tar}.gz" forceOverwrite="yes"
fileext=".md5"/>              
+        <checksum file="${package.output.location}/${xap-framework}" forceOverwrite="yes"
fileext=".md5"/>
+        <checksum file="${package.output.location}/${xap-framework-tar}.gz" forceOverwrite="yes"
fileext=".md5"/>
+        <checksum file="${package.output.location}/${xap-codebase}" forceOverwrite="yes"
fileext=".md5"/>
+        <checksum file="${package.output.location}/${xap-codebase-tar}.gz" forceOverwrite="yes"
fileext=".md5"/>
+        
+     <!--   <antcall target="-rat">
+            	<param name="rat.location" value="../../rat-0.5.1-src/"/>
+		<param name="rat.output.location" value="../rat_output"/>
+	</antcall>-->
     </target>
     
     <!-- ======================================================================
@@ -372,6 +408,18 @@
         
     </target>
     
+    
+    <target name="-rat" description="Runs rat">
+
+   	<mkdir dir="${rat.output.location}"/>
+   	<java jar="${rat.location}/rat-0.5.1.jar" output="${rat.output.location}/rat_output.txt"
fork="true">
+   		<arg value="${staging.location}"/>
+   	</java>
+       	<exec executable="grep" output="${rat.output.location}/rat_output_filtered.txt"
failifexecutionfails="false">
+		<arg value="!?????" />
+		<arg value="${rat.output.location}/rat_output.txt" />
+        </exec>
+    </target> 
 
     <!--=======================================================================
         Build and manufacture a distibution zip file



Mime
View raw message