ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Loughran" <>
Subject Re: Ant task for redeploying web applications on Tomcat
Date Wed, 13 Feb 2002 17:54:09 GMT

----- Original Message -----
From: "Christopher Taylor" <>
To: "Jakarta ANT User's List" <>
Sent: Wednesday, February 13, 2002 00:12
Subject: Ant task for redeploying web applications on Tomcat

> Hello,
> I searched the mail archives and couldn't find any tasks for redeploying
> applications on Tomcat, so I wrote one myself this afternoon (very
> bare-bones... it doesn't check for errors, all exceptions will stop the
> build).  If anyone is interested they can download it from
> -Chris
> P.S. It relies on the http-client commons package available from Jakarta.
> I've included it in my distribution of the tomcat-deploy task
> P.P.S. Any suggestions or contributions would be appreciated.

I have looked into dooing this; right now I can do it with a <get> in the
system. To get it work properly I think I'd need to change tomcat's manager
class. I'd be interested to know how you worked around the problems I

1. the upload mechanism where you provide a url to a remote WAR file does
not do hot updates after the first upload; from then on tomcat goes 'there
is a local copy so lets just start that'

2. the servlet responses are not easily parsable: you might think they are
but since they are 18in-izabe resource strings they may  be different on
different locales

The fixes I'd have to do: XML response from the servlet and better reload
behavior would both be tomcat side; once they were done it would make sense
to include the task in the tomcat codebase, rather than ant, so it will be
in sync better.


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

View raw message