Author: ate
Date: Wed Nov 16 08:26:41 2005
New Revision: 345051

URL: http://svn.apache.org/viewcvs?rev=345051&view=rev
Log:
Execute j2:db.create.test separately when called from allBuild because 
otherwise I got SQL errors from the testcases.
This is on Windows XP, maybe it doesn't happen on other platforms?
Anyways, On XP it seems embedded Derby db create blocks SQL access thereafter 
from the same thread.

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

Modified: portals/jetspeed-2/trunk/maven.xml
URL: 
http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/maven.xml?rev=345051&r1=345050&r2=345051&view=diff
==============================================================================
--- portals/jetspeed-2/trunk/maven.xml (original)
+++ portals/jetspeed-2/trunk/maven.xml Wed Nov 16 08:26:41 2005
@@ -185,7 +185,18 @@
       <attainGoal name="j2:portal.conf.tomcat"/>
 
       <j:if test="${context.getVariable('maven.test.skip') != 'true'}">
-         <attainGoal name="j2:db.create.test" />
+        <j:set var="online" value="${maven.mode.online}"/>
+        <j:choose>
+          <j:when test="${online}">
+            <j:set var="cmdargs" value="j2:db.create.test"/>
+          </j:when>
+          <j:otherwise>
+            <j:set var="cmdargs" value="-o j2:db.create.test"/>
+          </j:otherwise>
+        </j:choose>
+        <exec dir="${basedir}" vmlauncher="false" failonerror="true" 
executable="maven">
+          <arg line="${cmdargs}"/>
+        </exec>
       </j:if>
 
          <attainGoal name="jetspeed2:schema" />



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to