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

Oliver Heger commented on CONFIGURATION-338:
--------------------------------------------

Many thanks!

A patch would be appreciated. Any chance you could also provide a unit test?

> PropertiesConfiguration should allow variable interpolation for includes
> ------------------------------------------------------------------------
>
>                 Key: CONFIGURATION-338
>                 URL: https://issues.apache.org/jira/browse/CONFIGURATION-338
>             Project: Commons Configuration
>          Issue Type: Improvement
>    Affects Versions: 1.5
>            Reporter: David Donn
>
> It would be nice if Include files were subject to the same variable 
> interpolation as regular properties.
> e.g. it should be possible to do
> include=${sys:myfilename}
> I think it is simply a matter of changing the call in to loadIncludeFile() 
> PropertiesConfiguration.propertyLoaded() from:
> loadIncludeFile(files[i].trim());
> to:
> loadIncludeFile(interpolate(files[i].trim()));
> I am happy to submit a patch.

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

Reply via email to