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

raghutpk resolved CONFIGURATION-468.
------------------------------------

    Resolution: Invalid

Properties tag in the Configuration Definition File works
                
> Defining a XML Properties File in the Configuration Definition File.
> --------------------------------------------------------------------
>
>                 Key: CONFIGURATION-468
>                 URL: https://issues.apache.org/jira/browse/CONFIGURATION-468
>             Project: Commons Configuration
>          Issue Type: Improvement
>          Components: Build
>    Affects Versions: 1.6
>         Environment: Java Linux
>            Reporter: raghutpk
>              Labels: Apache, ApacheCommonsConfiguration, Configuration
>   Original Estimate: 1m
>  Remaining Estimate: 1m
>
> I am using a CombinedConfiguration Object to load a configuration definition 
> file and load all the configuration sources from it.
> I use a config.xml file to load multiple Configuration Sources 
> Ex: 
> {code:xml} 
> <configuration> 
>   <header/> 
>   <override> 
>    <properties fileName="db.properties" autoSave="true" 
> config-name="properties1"/>
> <properties fileName="jms.properties" autoSave="true" 
> config-name="properties2"/>
> <xml fileName="test.xml" autoSave="true" config-name="properties3"/>  
> </override> 
>   <additional/> 
> </configuration> 
> {code} 
> My test.xml(XML Properties File) file looks like this 
> {code:xml}
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd";>
> <properties>
>   <comment>Description of the property list</comment>
>   <entry key="key1">value1</entry>
>   <entry key="key2">value2</entry>
>   <entry key="key3">value3</entry>
> </properties>
> {code} 
> What tag should be used in the configuration definition file so that I can 
> Load the XML Properties File from a CombinedConfiguration Object. I tried 
> both <xml/> and <properties/>
> When I do :
> {code:java}
> //Intialize the Combined Configuration Object combinedConfig
> combinedConfig.getConfiguration("properties3");
> {code}
> I am getting a XMLConfiguration Object instead of a 
> XMLPropertiesConfiguration Object . Please advice.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to