tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jacob Kjome <>
Subject Re[2]: reloading with ant
Date Wed, 22 May 2002 15:59:22 GMT
Hello John,

I wouldn't mind see your working version even if it is copy/pasted.
At least we know that it works and can extend from that example.



Wednesday, May 22, 2002, 10:07:59 AM, you wrote:

>> -----Original Message-----
>> From: Marc Logemann [] 
>> Sent: 22 May 2002 15:03
>> To:
>> Subject: reloading with ant
>> Hi,
>> i just wanna ask if the following scenario is the best for 
>> re-deploying WARs:
>> I am doing my build task with ant and transfer the WAR file 
>> of my application into the webapps folder of tomcat. Then i 
>> do a GET task with ant in order to re-deploy it, exacltly i 
>> would do a MANAGER REMOVE and MANAGER INSTALL with ant. I 
>> could delete the existing appfolder before i do install, but 
>> it should be the same.
>> Are there any better routines for automatic re-deploy or hot-deploy? 
>> Of course in order to do a manager remoce or manager install, 
>> i have to edit the web.xml of the manager app in order not to 
>> come up with basic http authentication or?
>> I am quite sure that there must be tons of developers which 
>> solved this problem cause the ANT-Tomcat workflow seems very common :)

JN> Marc

JN> Have you looked at the sample build.xml that comes with the sample webapp
JN> with Tomcat?  I merged that with the catalina-ant tasks (using the Ant
JN> script snippets in the manager-app howto) to create a generic build file
JN> that I use for most web-app development.

JN> Now I can deploy and remove my web-app during a build.  I also use a "list"
JN> task just so I'm sure my web-app has been deployed!

JN> I'd recommend you start by looking at these two files and seeing if you can
JN> extend them to suit your needs.  If you're still having problems, let me
JN> know, and I'll post "my" build.xml ("mine", in that I did the
JN> copying/pasting...!)

JN> John

JN>  --
JN> John Niven
JN> Please reply through mailing list

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

Best regards,

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

View raw message