portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject svn commit: r511633 - /portals/jetspeed-2/trunk/maven.xml
Date Sun, 25 Feb 2007 21:55:28 GMT
Author: ate
Date: Sun Feb 25 13:55:28 2007
New Revision: 511633

URL: http://svn.apache.org/viewvc?view=rev&rev=511633
Log:
Prevent 5x copying and deleting pages and min-pages folder.
maven-1 is repeating the postGoal for war:webapp because we use inheritance of the project.xml
(5x)

Modified:
    portals/jetspeed-2/trunk/maven.xml

Modified: portals/jetspeed-2/trunk/maven.xml
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/trunk/maven.xml?view=diff&rev=511633&r1=511632&r2=511633
==============================================================================
--- portals/jetspeed-2/trunk/maven.xml (original)
+++ portals/jetspeed-2/trunk/maven.xml Sun Feb 25 13:55:28 2007
@@ -243,12 +243,18 @@
 	<postGoal name="war:webapp">
 		 <available file="${maven.build.dir}/jetspeed/WEB-INF/min-pages/" property="inRightDir"/>
 		  <j:if test="${inRightDir == 'true'}">
-	      <j:if test="${demoBuild != 'true'}">	
-			<delete dir="${maven.build.dir}/jetspeed/WEB-INF/pages"/>
-		    <copy todir="${maven.build.dir}/jetspeed/WEB-INF/pages/">
+	      <j:if test="${demoBuild != 'true'}">	      	
+	        <j:new var="file" className="java.io.File">
+	           <j:arg value="${maven.build.dir}/jetspeed/WEB-INF/min-pages" />
+	        </j:new>
+	        <j:if test="${file.exists()}">	              
+	          <delete dir="${maven.build.dir}/jetspeed/WEB-INF/pages"/>
+		      <copy todir="${maven.build.dir}/jetspeed/WEB-INF/pages/">
 		        <fileset dir="${maven.build.dir}/jetspeed/WEB-INF/min-pages/"/>
-			</copy>
-	     </j:if>
+			  </copy>
+	          <delete dir="${maven.build.dir}/jetspeed/WEB-INF/min-pages"/>
+	        </j:if>
+	      </j:if>
 		 </j:if>
 	</postGoal>
 		



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


Mime
View raw message