tomcat-users mailing list archives

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

Vikram,

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:
> http://tomcat.apache.org/tomcat-7.0-doc/appdev/build.xml.txt

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 install.target.dir set to C:\lcs

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

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
redeploy.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkzcSY0ACgkQ9CaO5/Lv0PDFtwCfQqaRbDzmBNRLbIUdLMtzpJ+O
arkAniDt3v4Pu4xSlRHG6d1ZxomIeKLD
=yzgH
-----END PGP SIGNATURE-----

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


Mime
View raw message