[
https://issues.apache.org/jira/browse/CONFIGURATION-247?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12462549
]
Oliver Heger commented on CONFIGURATION-247:
--------------------------------------------
Implementing this feature is problematic because of the way include files in
PropertiesConfiguration are currently handled: The properties found in included
files are simply added to the current configuration object, and the connection
to the source files is lost. One consequence of this is that if you save such a
PropertiesConfiguration, the properties loaded from included files will be
stored in the main properties file (rather than being written back to the
original files).
Support for include files is specific to PropertiesConfiguration and no general
feature of (file-based) Configuration classes. With DefaultConfigurationBuilder
and ConfigurationFactory Commons Configuration provides a more generic means of
combining properties from different sources. The former allows defining
reloading strategies for configurations that are to be combined together. Using
this class you should be able to solve your problem.
So I tend to close this issue as WON'T FIX unless you can give good reasons why
you cannot use this alternative.
> recognize changes in included Propertiefiles
> --------------------------------------------
>
> Key: CONFIGURATION-247
> URL: https://issues.apache.org/jira/browse/CONFIGURATION-247
> Project: Commons Configuration
> Issue Type: New Feature
> Reporter: Mirko Wolf
>
> Properties-Files included in other properties-Files should be recognized by
> the event-listener / reloading-strategie set on the main properties-File.
> This is necessary in case of modifications in these included Files.
> for instance:
> main.properties
> include=sample.properties
> ....
> sample.properties
> [EMAIL PROTECTED]
> ...
> when i change the value of mail.address i definitly need a restart of my
> application.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]