commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chandra (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CONFIGURATION-284) ability to read OS environment variables
Date Tue, 06 Oct 2009 04:57:31 GMT

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

Chandra commented on CONFIGURATION-284:
---------------------------------------

Hello there,
The "env" interpolator prefix still does not seem to work. On investigation, I noticed that
we have a new java class to support reading environment variables from different OSes, but
there is no interpolator class (extending StrLookup) that supports the "env" prefix.
Could someone look into this? For the moment, I have put in a class myself locally. Will add
to the repository once I find some time..

Regards.

> 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
>            Assignee: Oliver Heger
>            Priority: Minor
>             Fix For: 1.5
>
>         Attachments: CONFIGURATION-284.patch, EnvironmentConfiguration.java
>
>
> 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.


Mime
View raw message