commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Donn (JIRA)" <j...@apache.org>
Subject [jira] Updated: (CONFIGURATION-338) PropertiesConfiguration should allow variable interpolation for includes
Date Thu, 09 Oct 2008 06:38:44 GMT

     [ https://issues.apache.org/jira/browse/CONFIGURATION-338?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

David Donn updated CONFIGURATION-338:
-------------------------------------

    Attachment: include-interpolation.patch

I have attached my patch. It includes a test. Please let me know if there are any problems
and I will fix as this feature it quite important for me so I am keen to get it included.

> 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
>         Attachments: include-interpolation.patch
>
>
> 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.


Mime
View raw message