ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrei" <and...@netrom.ro>
Subject exec task problem
Date Thu, 03 Nov 2005 13:55:01 GMT
I have an ant task that starts and stops jboss:

 <target name="run-jboss">
  <parallel>
    <echo message="--------------- atempting to start JBoss ------------"/>
    <exec dir="c:\java\jboss\bin" executable="cmd.exe" os="Windows XP">
     <arg line="/c c:\java\jboss\bin\run_unid_nocache.bat"/>
    </exec>

    <sequential>
     <echo message="--------------- waiting fo Jboss to 
start ------------"/>
     <waitfor maxwait="5" maxwaitunit="minute" checkevery="30" 
checkeveryunit="second">
      <http url="http://localhost:9080/app"/>
     </waitfor>
     <echo message="--------------- I think Jboss is started ------------"/>

      <echo message="++++++++++++++++++++++++ Stopping JBoss 
++++++++++++++++++++++++++"> </echo>
      <exec dir="c:\java\jboss\bin" executable="cmd.exe" os="Windows XP">
       <arg line="/c c:\java\jboss\bin\shutdown.bat -s localhost:1099"/>
      </exec>
      <echo message="++++++++++++++++++++++++ JBoss Stopped 
++++++++++++++++++++++++++"> </echo>

    </sequential>

  </parallel>
    </target>

the problem is that the ant task never finish execution, although the jboss 
is stopped. I think the java process is never killed. Any body has any 
ideea?



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message