Hello Andrei, i did a little bit googling and these could be interesting for you:
http://cargo.codehaus.org/ Cargo is a thin wrapper around existing J2EE containers. It provides different APIs to easily manipulate containers. http://www.jboss.org/?module=bb&op=viewtopic&t=66570&start=0 Ryan Campell (JBoss): I've checked in some ant tasks to give us better control over jboss instances. http://wiki.jboss.org/wiki/Wiki.jsp?page=ServerControllerTasks The Server Controller Ant Tasks provide a mechanism for starting & stopping these server instances. http://lists.urbancode.com/pipermail/anthill/2003-August/001752.html 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... cheers Jan >-----Ursprüngliche Nachricht----- >Von: Andrei [mailto:[EMAIL PROTECTED] >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" >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: [EMAIL PROTECTED] For >additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
