tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: Variable returning context name
Date Wed, 28 Jan 2009 18:29:31 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

To whom it may concern,

rubach@lat-lon.de wrote:
> Hi list,
> is there  an tomcat (5.5x) variable which gives back the context name such
> as webappRoot returns the path to the webapp!?
> I plan to use this to specify an logfile such as
> log4j.appender.logfile.File=${log.dir}/${contextnamevariable}_test.log

Not really. I recommend you use a deployment procedure that does
parametric replacement of such things during deployment time (using,
say, ant).

Tomcat doesn't set any system properties containing the context name of
any application because it's not clear which one should be set (there
could be any number of apps being deployed... which one should it pick?).

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

iEYEARECAAYFAkmApAsACgkQ9CaO5/Lv0PDVfwCgqve1gbVRUetDY3lNo4zJxjrL
q5oAn3iJy2Ze0eu5jtWH8+xWjc2S6MjA
=rfnO
-----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