proper way to access local dir? 2004-01-16 - By Daniel
Back
Thanks again for the ideas Yoav!
Regards, Daniel
On Fri, 16 Jan 2004, Shapira, Yoav wrote:
> > Hola, > > >Thanks Yoav. So.. what if it's not arbitrary and I want to put it in > my > >webapp's dir (e.g. under WEB-INF/repo)? There wouldn't be a special > way > >to access the directory, is there? > > No, no special way for writing. It's the same as an arbitrary directory > that just happens to be under your webapp root. > > >As a side note, my log4j log dir setting for my webapp suffers from > this > >same problem, where I must set it to /var/log/app in production which > >wouldn't work for my windows test box. :( > > You can use environment variables in the log4j configuration file, e.g. > $CATALINA_HOME/logs/myLog.txt. Search the log4j-user archive for more > information on that. Alternatively, you can again use Ant tokens here > and let Ant fill them in appropriately when packing the WAR or deploying > the webapp. > > Yoav Shapira > > > > 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: tomcat-user-unsubscribe@(protected) > For additional commands, e-mail: tomcat-user-help@(protected) > >
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected) For additional commands, e-mail: tomcat-user-help@(protected)
|
|