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

Gary Gregory commented on CONFIGURATION-688:
--------------------------------------------

I agree that the behavior is too surprising and hard to 'use' to be considered 
a feature and that it should be fixed.

Would you provide a PR on github? 
[https://github.com/apache/commons-configuration]

Does the Commons community have any feedback here?

 

> Including a property file moves locator to that file
> ----------------------------------------------------
>
>                 Key: CONFIGURATION-688
>                 URL: https://issues.apache.org/jira/browse/CONFIGURATION-688
>             Project: Commons Configuration
>          Issue Type: Bug
>          Components: File reloading
>    Affects Versions: 2.2
>            Reporter: achelon
>            Priority: Major
>
> 1. Create files:
> {code:java}
> # toBeIncluded.properties
> some_prop=someValue{code}
> {code:java}
>  # toBeIncluded2.properties
> some_prop_2=someValue2
> {code}
> {code:java}
>  # someDirectory/prop.properties
> include=../toBeIncluded.properties
> include=../toBeIncluded2.properties
> {code}
> 2. Load someDirectory/prop.properties file
> Expected:
>  * Both files are loaded
> Actual:
>  * toBeIncluded2 cannot be loaded with 
> org.apache.commons.configuration2.ex.ConfigurationException: Cannot resolve 
> include file exception



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to