tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adam Hardy <ahardy.str...@cyberspaceroad.com>
Subject Re: ant emulation of "Upload a WAR file to install"
Date Mon, 23 Feb 2004 15:23:31 GMT
On 02/23/2004 03:04 PM Dean A. Hoover wrote:
> I am using ant 1.6 and tomcat 4.1.29.
> I have set my webapps directory to someplace
> other than the usual place. When I use
> the /manager/html/list application through
> my browser, I can use the "Upload a WAR file to install"
> form to put my war file in the webapps directory,
> unpack it and run it. This is exactly the behavior
> I would like to emulate in ant, but I do not see
> how. I have played around with the "install" and
> "deploy" tasks, but they do not operate the same
> as the upload form does. How can I do what the
> form does using ant?

You just need ant to copy the war into your APPBASE directory. Then 
tomcat will do the rest, assuming that your host (in server.xml) is 
configured to autoDeploy="true" and unpackWARs="true".


Adam
-- 
struts 1.1 + tomcat 5.0.16 + java 1.4.2
Linux 2.4.20 Debian


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


Mime
View raw message