tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <>
Subject Re: Deploying Tomcat app with Ant to non-webapps location (Windows)
Date Thu, 11 Nov 2010 19:52:45 GMT
Hash: SHA1


On 11/3/2010 9:09 AM, Vikram Vaswani wrote:
> Hi David,
>>> When you say "your script", which script do you mean? I'm using the
>>> standard Ant build.xml that's shown in the Tomcat online docs.
>> That's the script you need to change; point it to where you want your app to
>> end up.
> Can you suggest which properties I should change in this file or point
> me to a link that shows how to change it? The one I'm using right now
> is this one, which is the default one shown in the Tomcat docs:

Unfortunately for you, this ant script is rigged to use the <deploy>
task which actually uploads your webapp to Tomcat for deployment. Tomcat
will not put your uploaded file into C:\lcs.

Instead, I think you'll have to modify the "install" target instead to
explode your WAR file into your preferred location. Try removing the
entire contents of the "install" target and replacing them with this:

<!-- Make sure you have set to C:\lcs

<copy toDir="${}">
  <fileset dir="${build.home}" includes="**/*" />

This will simply copy your built webapp into C:\lcs. You may have to
"touch" the deployment XML file under
CATALINA_BASE/conf/Catalina/localhost/lcs.xml in order to trigger a

- -chris
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla -


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

View raw message