You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by jm...@apache.org on 2005/02/28 22:18:42 UTC

svn commit: r155698 - struts/build/trunk/maven.xml

Author: jmitchell
Date: Mon Feb 28 13:18:41 2005
New Revision: 155698

URL: http://svn.apache.org/viewcvs?view=rev&rev=155698
Log:
it is now possible to build the complete (where available) distributions for all mavenized subprojects

Modified:
    struts/build/trunk/maven.xml

Modified: struts/build/trunk/maven.xml
URL: http://svn.apache.org/viewcvs/struts/build/trunk/maven.xml?view=diff&r1=155697&r2=155698
==============================================================================
--- struts/build/trunk/maven.xml (original)
+++ struts/build/trunk/maven.xml Mon Feb 28 13:18:41 2005
@@ -9,12 +9,6 @@
   <goal name="build-all">
   
 	<maven:maven
-	  descriptor="../mock/project.xml"
-	  goals="dist"
-	  ignoreFailures="false"
-	/>
-	
-	<maven:maven
 	  descriptor="../core/project.xml"
 	  goals="dist"
 	  ignoreFailures="false"
@@ -53,18 +47,69 @@
   </goal>
     
   <goal name="clean-all">
-    <maven:reactor  
-              basedir="./"
-             includes="../*/project.xml"
-             excludes="build/project.xml"
-                goals="clean"
-               banner="Cleaning Struts distribution"
-       ignoreFailures="false"/>
+	<maven:maven
+	  descriptor="../core/project.xml"
+	  goals="clean"
+	  ignoreFailures="false"
+	/>
+	
+	<maven:maven
+	  descriptor="../taglib/project.xml"
+	  goals="clean"
+	  ignoreFailures="false"
+	/>
+	
+	<maven:maven
+	  descriptor="../tiles/project.xml"
+	  goals="clean"
+	  ignoreFailures="false"
+	/>
+	
+	<maven:maven
+	  descriptor="../apps/project.xml"
+	  goals="clean"
+	  ignoreFailures="false"
+	/>
+	
+	<maven:maven
+	  descriptor="../el/project.xml"
+	  goals="clean"
+	  ignoreFailures="false"
+	/>
+	
+	<maven:maven
+	  descriptor="../bsf/project.xml"
+	  goals="clean"
+	  ignoreFailures="false"
+	/>
+	
   </goal>
 
   <postGoal name="dist">
 	<attainGoal name="jar:install"/>
   </postGoal>
+  
+  <goal name="struts:gather:distribution">
+	  <tstamp>
+	    <format property="now" pattern="yyyy-MM-dd"/>
+	  </tstamp>
+	  
+	  <j:set var="file"  value="target/${pom.artifactId}-${pom.currentVersion}.jar"/>	  
+	  <j:set var="build" value="../build"/>
+	  <j:set var="dir"   value="${build}/${now}/${pom.artifactId}-${pom.currentVersion}"/>
+	  <j:set var="docs"  value="target/docs/"/>
+	  
+	  <ant:mkdir dir="${dir}"/>
+	  <ant:copy file="${file}" 
+	  	todir="${dir}"/>
+	  
+	  <ant:mkdir dir="${build}/latest-docs/${pom.artifactId}-${pom.currentVersion}"/>
+	  <copy todir="${build}/latest-docs/${pom.artifactId}-${pom.currentVersion}">
+		<fileset dir="target/docs"/>
+	  </copy>
+  
+  </goal>
+  
 
   <postGoal name="dist:prepare-bin-filesystem">
     <!-- Copy Instructions and Readmes -->



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org