I start jboss using an ant exec task. and also stop it with other ant exec task.

<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 ends (i think the jboss process is not killed ). Does any body have an ideea how to end this task or the jboss process?





-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to