Oliver Heger
Tue, 24 Jul 2007 12:59:56 -0700
Wade Chandler wrote:
Sure, but not from a configuration perspective. For instance, if daemon used configuration for a configuration file it could be easier to use. Provide multiple configuration files with your distribution which allows users to more easily install and uninstall services and operate on them without remembering command line switches etc. launcher could even use configuration (which is smaller than ANT) yet also allow ANT and not have as many runtime requirements. Then of course other applications can just use a single configuration entry point and use configuration information and reference environment variables without having to hard code them into their sources...makes it configurable. Wade --- Mark Fortner <[EMAIL PROTECTED]> wrote:Isn't this already handled by System.getenv?
System.getenv() has long been deprecated and is now available again since 1.5. [configuration] still has 1.3 as minimum required JDK; I don't know when we switch to 1.5 (there will probably be another version that requires 1.4).
My problem with this issue is that it will probably take a high effort to implement it correctly for earlier JDKs, while we get it for free in 1.5. This seem counter-productive.
Oliver
On 7/23/07, Wade Chandler <[EMAIL PROTECTED]> wrote:Personally, I think this type thing comes in very handy in different situations. It would even behandyin daemon and launcher. Look how many timesscriptshave to be written for every OS to get different things like JAVA_HOME and ANT_HOME or similar intoanapplication. It has been deprecated for a longtime,but I doubt it will ever be removed. It seems tobequite needed in situations. Wade --- Oliver Heger <[EMAIL PROTECTED]>wrote:Hi all, for [configuration] we have a feature requestforsupporting environment variables [1]. I searched the archives and found that this topic has been discussed before [2]. I was wondering whether situation has changedsincethen. My personal opinion is expressed in the Jira ticket in [1].Whatdo others think? Please note that the ticket contains anattachmentwith a simple implementation for accessing environmentvariables.Thanks Oliver [1]http://issues.apache.org/jira/browse/CONFIGURATION-284[2]http://thread.gmane.org/gmane.comp.jakarta.commons.devel/33239/focus=33325--------------------------------------------------------------------- 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]