ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <>
Subject AW: exec task problem
Date Thu, 03 Nov 2005 14:15:42 GMT
Hello Andrei, 

i did a little bit googling and these could be interesting for you:
Cargo is a thin wrapper around existing J2EE containers. It provides different APIs to easily
manipulate containers.
Ryan Campell (JBoss): I've checked in some ant tasks to give us better control over jboss
The Server Controller Ant Tasks provide a mechanism for starting & stopping these server
Stopping Jboss from Build.xml 

I think searching for Ryans Server Controller Ant Tasks would be the best solution. Maybe
they are included in JBoss...


>-----Urspr√ľngliche Nachricht-----
>Von: Andrei [] 
>Gesendet: Donnerstag, 3. November 2005 14:55
>An: Ant Users List
>Betreff: 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" 
>      <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 
>      </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: For 
>additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message