RE: Obtain catalina-home variable

2008-06-02 Thread Narendra Sharma
e.org Subject: Re: Obtain catalina-home variable Thanks a lot. Konstantin Kolinko wrote: > > Yes, it is OK for all operating systems. > > > 2008/5/29 maux <[EMAIL PROTECTED]>: >> >> Hi Konstantin, >> >> That´s exactly what i wanted. But if I used >&g

Re: Obtain catalina-home variable

2008-06-02 Thread maux
in Java tab in the configuration dialog). >>> >>> >>> 2008/5/28 Mark Thomas <[EMAIL PROTECTED]>: >>>> maux wrote: >>>>> >>>>> Hi, >>>>> >>>>> I would like to know how can i catch the catalina_home variable in a >>>>> java >>>>> code. >>>>> >>>>> Thanks in advance. >>>> >>&

Re: Obtain catalina-home variable

2008-05-29 Thread Konstantin Kolinko
Yes, it is OK for all operating systems. 2008/5/29 maux <[EMAIL PROTECTED]>: > > Hi Konstantin, > > That´s exactly what i wanted. But if I used > "System.getProperty("catalina.home")", that is ok for windows and for linux > Tomcat installation or is it only valid for windows? > > Thank you very m

Re: Obtain catalina-home variable

2008-05-29 Thread maux
gt;> >>> I would like to know how can i catch the catalina_home variable in a >>> java >>> code. >>> >>> Thanks in advance. >> >> System.getenv() >> >> Mark >> > > --------- > To start a new topic, e-mail: users@tomcat.apache.

Re: Obtain catalina-home variable

2008-05-28 Thread Konstantin Kolinko
The answer is correct as a direct match to the question, but I would recommend using the following code instead: System.getProperty("catalina.home") System.getProperty("catalina.base") The catalina.bat / catalina.sh script passes values of CATALINA_* environment variables as system properties, w

Re: Obtain catalina-home variable

2008-05-28 Thread maux
: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Obtain-catalina-home-variable-tp17509750p17514569.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To sta

Re: Obtain catalina-home variable

2008-05-28 Thread Mark Thomas
maux wrote: Hi, I would like to know how can i catch the catalina_home variable in a java code. Thanks in advance. System.getenv() Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL

Obtain catalina-home variable

2008-05-28 Thread maux
Hi, I would like to know how can i catch the catalina_home variable in a java code. Thanks in advance. -- View this message in context: http://www.nabble.com/Obtain-catalina-home-variable-tp17509750p17509750.html Sent from the Tomcat - User mailing list archive at Nabble.com