I think you can use the Ivan Ivanov's macrodef[1] to start / stop tomcat from your ant script
Also, Mani G. Iyer sent a very good piece of information[2] to perform tasks in Tomcat from Ant Ahh! The beauty of the archives.... ;) Regards [1] http://marc.theaimsgroup.com/?l=ant-user&m=108693683708999&w=2 [2] http://marc.theaimsgroup.com/?l=ant-user&m=108691727814737&w=2 -----Original Message----- From: Robert Lin [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 04, 2005 5:02 PM To: Ant Users List Subject: RE: Launching Tomcat from Ant. I think the "executable" should be "cmd.exe" and pass the batch file as a nested argument. At least that's how we use it. Best, Robert -----Original Message----- From: Donald Strong [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 04, 2005 2:41 PM To: Ant Mail List Subject: Launching Tomcat from Ant. Hi all, I am having a problem launching tomcat from ant. It works fine when I run ant in a dos shell but not when I run ant from a cygwin shell. <exec os="Windows 95, Windows 98, Windows Me, Windows NT, Windows XP, Windows CE" executable="${tomcat.dir}/bin/catalina.bat" spawn="true" dir="${tomcat.dir}"> <arg line='jpda start'/> </exec> <echo message="Waiting for Tomcat to start..."/> <waitfor maxwait="30" maxwaitunit="second" timeoutproperty="tomcat.failed"> <http url="${tomcat.manager.url}"/> </waitfor> <fail if="tomcat.failed"/> Any suggestions welcome. Donald. --------------------------------------------------------------------- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]