commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joerg Schaible (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CONFIGURATION-284) ability to read OS environment variables
Date Fri, 06 Jul 2007 07:08:08 GMT

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

Joerg Schaible commented on CONFIGURATION-284:
----------------------------------------------

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: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message