Author: rich
Date: Tue May  3 13:46:52 2005
New Revision: 167988

URL: http://svn.apache.org/viewcvs?rev=167988&view=rev
Log:
Added a delay of a few seconds after deploying an app through Tomcat.  This 
addresses the situation we were seeing (sporadically), where automated tests 
against the distribution would fail because of 404 errors for either 
TestRecorder itself or for the page flow in the first test.

tests: drt in trunk (linux)
BB: self (WinXP)


Modified:
    incubator/beehive/trunk/ant/tomcat-imports.xml

Modified: incubator/beehive/trunk/ant/tomcat-imports.xml
URL: 
http://svn.apache.org/viewcvs/incubator/beehive/trunk/ant/tomcat-imports.xml?rev=167988&r1=167987&r2=167988&view=diff
==============================================================================
--- incubator/beehive/trunk/ant/tomcat-imports.xml (original)
+++ incubator/beehive/trunk/ant/tomcat-imports.xml Tue May  3 13:46:52 2005
@@ -33,6 +33,8 @@
 
         <taskdef name="tomcatdeploy" 
classname="org.apache.catalina.ant.DeployTask" classpath="${catalina-ant.jar}"/>
         <tomcatdeploy path="/${context.path}" localWar="${_url}" 
username="${catalina.username}" password="${catalina.password}"/>
+        <!-- The Tomcat deploy task doesn't necessarily finish deploying the 
app when the task completes.  Sleep for a few... -->
+        <sleep seconds="5"/>
     </target>
 
     <target name="undeploy" description="Undeploy a webapp running on a Tomcat 
server">
@@ -47,6 +49,8 @@
 
         <taskdef name="tomcatreload" 
classname="org.apache.catalina.ant.ReloadTask" classpath="${catalina-ant.jar}"/>
         <tomcatreload path="/${context.path}" username="${catalina.username}" 
password="${catalina.password}"/>
+        <!-- The Tomcat deploy task doesn't necessarily finish deploying the 
app when the task completes.  Sleep for a few... -->
+        <sleep seconds="5"/>
     </target>
 
     <target name="start" description="Start a Tomcat instance.">
@@ -116,4 +120,4 @@
         </java>
     </target>
     
-</project>
\ No newline at end of file
+</project>


Reply via email to