ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Conelly, Luis (GE Energy, Non GE, GENE)" <Luis1.Cone...@ge.com>
Subject RE: Launching Tomcat from Ant.
Date Tue, 04 Jan 2005 23:34:41 GMT
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:Robert.Lin@bluejungle.com]
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:dstrong@agentissoftware.com] 
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: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message