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

Joerg Schaible edited comment on CONFIGURATION-284 at 7/6/07 12:08 AM:
-----------------------------------------------------------------------

Interpolation for system properties is already available, simply set up your 
configuration properly:

{noformat}
final CompositeConfiguration configuration = new CompositeConfiguration();

// system properties override every setting
configuration.addConfiguration(ConfigurationConverter.getConfiguration(System.getProperties()));

// add other configuration instances here
{noformat}


 was:
Interpolation for system properties is already available, simply set up your 
configuration properly:

{code:java}
                final CompositeConfiguration configuration = new 
CompositeConfiguration();

                // system properties override every setting
                
configuration.addConfiguration(ConfigurationConverter.getConfiguration(System.getProperties()));

                // add other configuration instances here
{code}

> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to