commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oliver Heger (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CONFIGURATION-284) ability to read OS environment variables
Date Sat, 07 Jul 2007 14:57:04 GMT

    [ https://issues.apache.org/jira/browse/CONFIGURATION-284?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12510903
] 

Oliver Heger commented on CONFIGURATION-284:
--------------------------------------------

Joerg, I think this is a misunderstanding: This feature request is about environment variables,
while Configuration so far only supports Java's system properties.

I had a vague memory that the topic "access to environment variables" was discussed before
on the commons mailing list, and found this reference:

http://thread.gmane.org/gmane.comp.jakarta.commons.devel/33239/focus=33325

Obviously this thread did not come to a final solution, AFAIK this feature was not added to
one of the commons libraries. If it was (for instance in commons-lang), it would be really
easy to incorporate it into commons-configuration. But having to implement it ourselves, situation
looks different. The problem I see here is that it will really be difficult to implement a
robust and portable solution, and besides this feature is probably out of scope for commons-configuration.

>From Java 1.5 on, access to environment properties will be possible using methods of the
System class.  So when we switch to this version (no idea when this will happen though) it
will be no problem to satisfy this request. But for the moment I am reluctant.

> ability to read OS environment variables
> ----------------------------------------
>
>                 Key: CONFIGURATION-284
>                 URL: https://issues.apache.org/jira/browse/CONFIGURATION-284
>             Project: Commons Configuration
>          Issue Type: New Feature
>          Components: Interpolation
>            Reporter: Aksel Schmidt
>            Priority: Minor
>
> suggestion:
> interpolation with system environment, i.e.
> ${sys:user.name} reads from systemproperties (as of today)
> ${sysenv:TEMP} reads from OS environment
> these can be parsed from a supported set of OS's - windows read from a set in a "cmd
/c", unix/linux from an "env" etc. (just once on demand)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message