On Thursday 02 September 2004 22:43, Remy Maucherat wrote:
> On Thu, 2 Sep 2004 21:56:36 +0200, Michael Schuerig 
<[EMAIL PROTECTED]> wrote:
[Ant deploy task copies webapps]

> Yes, this particular case will work like that now, in order to
> simplify quite a bit the deployer (generating a trivial xml file to
> reference the context would work, but might not contain what you
> expect, which is why Tomcat copies your webappp). For now, I
> recommend giving a xml file to Tomcat if you want to point to an
> external context.

Just to make sure I understand you correctly. You mean I create a 
context file like this

<?xml version='1.0' encoding='utf-8'?>
<Context path="/stundenplan" 
docBase="/home/michael/workspace/tomtest/build">
</Context>

copy it to $CATALINA_HOME/conf/Catalina/localhost/tomtest.xml and wait 
for Tomcat to pick it up?

Or do you mean an Ant target like this?

  <target name="tomcat.install" depends="compile"
   description="Install application to servlet container">
    <deploy url="${manager.url}"
     username="${manager.username}"
     password="${manager.password}"
     path="/${app.name}"
     config="file://${etc}/context-local.xml" />
  </target>

It doesn't work, though, as one of war, localWar, or tag is required. 
When I give a localWar, it is copied to $CATALINE_HOME/webapps, but not 
really used (and not needed) as the docBase entry in the context config 
file points somewhere else.

Michael

-- 
Michael Schuerig                  Failures to use one's frontal lobes
mailto:[EMAIL PROTECTED]        can result in the loss of them.
http://www.schuerig.de/michael/   --William H. Calvin

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to