You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Andrei <an...@netrom.ro> on 2005/11/03 14:55:01 UTC

exec task problem

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