Thanks Yaov, the Ant filter tokens was exactly what I needed.


Charlie



Shapira, Yoav said the following on 6/15/2004 9:10 AM:

Hi,
Nope, no variable parsing in web.xml.

You can use ant filter tokens to set the appropriate value when copying
web.xml to its destination diretory.

Yoav Shapira
Millennium Research Informatics




-----Original Message-----
From: Charles N. Harvey III [mailto:[EMAIL PROTECTED]
Sent: Monday, June 14, 2004 6:19 PM
To: Tomcat Users List
Subject: java variables in mywebapp.xml

Hello.
I put a file: mywebapp.xml into tomcat/webapps/. This file makes


Tomcat


reference my webapp in a different directory. I tried to use a


variable


in the path but Tomcat hated that.


<?xml version="1.0" encoding="UTF-8"?>

<Context
      path="/mywebapp"
      docBase="${user.home}/projects/mywebapp"
      debug="0"
      privileged="false">
  <Logger
          className="org.apache.catalina.logger.FileLogger"
          prefix="localhost_mywebapp_log."
          suffix=".txt"
          timestamp="true"/>
</Context>


But ${user.home} renders exactly as written. It doesn't change to
/home/charvey/.
Is there any way to make something like this happen? This is a team
project
so when someone else checks it out of CVS I would like it to work on


the


user
directory instead of having someone to change it.  If its not possible,
well,
then I'll figure something else out.

Thanks a lot.


Charlie


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






This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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






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



Reply via email to