My Ant script is probably overly complex, but I set up a variety of variables in my
build.properties that determine where the WebApp
will be deployed.
I also have in my project directory, a directory called 'conf' which holds all my
config files--log4j.properties, web.xml, etc...
On deploy, Ant copies these configuration files into there proper location and
substitutes the '@' tokens .
Here is the relevant task that handles the log4j.properties file:
<!-- copy over log4j properties if it exists-->
<copy file="${deploy.logproperties}" todir="${build.dir.webapp}/WEB-INF/classes"
failonerror="no">
<filterset>
<filter token="logfile"
value="${deploy.webapproot}/${deploy.appdir}/WEB-INF/logs/${deploy.logfilename}" />
</filterset>
</copy>
- Jeff
----- Original Message -----
From: "Shapira, Yoav" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, October 01, 2002 10:24 AM
Subject: RE: log4j
Hi,
>If, like me, you deploy your app to many different locations, you can
use a
>build and deploy tool like Ant to dynamically write out
>the full path on deploy. So my actual properties file looks like this:
>
>log4j.appender.A1.File=@logfile@
>
>On deploy, Ant substitutes the actual full path for "@logfile@"
Can you please elaborate on this part? Specifically the last sentence:
if you could include the relevant segment from your ant script, that
would be great!
Thanks,
Yoav Shapira
Millennium ChemInformatics
> 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: <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>