Author: jfrederic.clere(a)jboss.com
Date: 2009-03-09 05:34:31 -0400 (Mon, 09 Mar 2009)
New Revision: 2345
Modified:
trunk/mod_cluster/test/java/apachectl.bat
trunk/mod_cluster/test/java/build.xml
Log:
Tried to wait in ant :-)
Modified: trunk/mod_cluster/test/java/apachectl.bat
===================================================================
--- trunk/mod_cluster/test/java/apachectl.bat 2009-03-07 13:15:52 UTC (rev 2344)
+++ trunk/mod_cluster/test/java/apachectl.bat 2009-03-09 09:34:31 UTC (rev 2345)
@@ -24,16 +24,22 @@
@echo on
@if "%1" == "stop" goto stop
+@if "%1" == "start" goto start
"@BASELOC(a)\httpd-2.2\bin\httpd.exe" -k install
+dir "@BASELOC(a)\httpd-2.2\logs"
+goto end
+
+:start
REM install will test httpd but using the current user so remove the logs files.
REM wait a little (2 ways)
REM choice /c C /D C /t 30
-ping -n 31 localhost > NUL
+REM ping -n 31 localhost > NUL
dir "@BASELOC(a)\httpd-2.2\logs"
del "@BASELOC(a)\httpd-2.2\logs\access_log"
del "@BASELOC(a)\httpd-2.2\logs\error_log"
"@BASELOC(a)\httpd-2.2\bin\httpd.exe" -k start
+dir "@BASELOC(a)\httpd-2.2\logs"
goto end
:stop
Modified: trunk/mod_cluster/test/java/build.xml
===================================================================
--- trunk/mod_cluster/test/java/build.xml 2009-03-07 13:15:52 UTC (rev 2344)
+++ trunk/mod_cluster/test/java/build.xml 2009-03-09 09:34:31 UTC (rev 2345)
@@ -116,6 +116,13 @@
<arg value="start"/>
</exec>
<exec executable="apache.bat" os="Windows 2003">
+ <arg value="install"/>
+ </exec>
+ <!-- on windoze wait 30 seconds -->
+ <waitfor maxwait="30" maxwaitunit="second">
+ <available file="${base.apache}/opt/jboss/httpd/sbin/apachectl"/>
+ </waitfor>
+ <exec executable="apache.bat" os="Windows 2003">
<arg value="start"/>
</exec>
</target>
Show replies by date