commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oliver Heger (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CONFIGURATION-600) Loading xml configuration file as a stream does not work with multi configurations
Date Mon, 25 May 2015 18:05:17 GMT

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

Oliver Heger resolved CONFIGURATION-600.
----------------------------------------

An example of loading a combined configuration from a jar has been added to the user's guide.

> Loading xml configuration file as a stream does not work with multi configurations
> ----------------------------------------------------------------------------------
>
>                 Key: CONFIGURATION-600
>                 URL: https://issues.apache.org/jira/browse/CONFIGURATION-600
>             Project: Commons Configuration
>          Issue Type: Bug
>    Affects Versions: 1.8
>            Reporter: John Henriksson
>             Fix For: 2.0
>
>
> When using the commons configuration inside a WAR loading a XML file works fine when
done like this:
> InputStream is = this.getClass().getClassLoader().getResourceAsStream("/conf/main.xml");
> builder.load(is);
> The problem is when the main.xml reference other xml files:
> configuration>
>     <xml fileName="child1.xml"/>
> </configuration>
> If the structure of the war is:
> /
> /classes
> /conf/child1.xml
> /conf/main.xml
> There seems to be no way to pick up child1.xml from main.xml when loading main.xml as
a stream.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message