Re: [Configuration]: Classpath resource in composite configuration

2008-02-21 Thread Thorsten Scherler
On Thu, 2008-02-21 at 07:50 +, [EMAIL PROTECTED] wrote: The following setup does not work - I was a bit disappointed. If I load the configuration definition file off the classpath as follows ConfigurationFactory factory = new ConfigurationFactory(); URL configURL = new

[Configuration]: Classpath resource in composite configuration

2008-02-20 Thread uma_rk
I am using commons configuration ver. 1.2. I would like ot define a composite configuration in which one or more items are classpath resources as in: configuration properties fileName=usergui.properties/ xml fileName=classpath:/gui.xml/ /configuration Is this somehow possible?

Re: [Configuration]: Classpath resource in composite configuration

2008-02-20 Thread Oliver Heger
[EMAIL PROTECTED] schrieb: I am using commons configuration ver. 1.2. I would like ot define a composite configuration in which one or more items are classpath resources as in: configuration properties fileName=usergui.properties/ xml fileName=classpath:/gui.xml/

Re: [Configuration]: Classpath resource in composite configuration

2008-02-20 Thread uma_rk
Guten Tag! Thanks for the prompt response. I am using ver 1.5 - I mistakenly thought I was using ver 1.2. Are you saying that if I load the following config defn file configuration properties fileName=usergui.properties/ xml fileName=gui.xml/ /configuration and if gui.xml

Re: [Configuration]: Classpath resource in composite configuration

2008-02-20 Thread uma_rk
The following setup does not work - I was a bit disappointed. If I load the configuration definition file off the classpath as follows ConfigurationFactory factory = new ConfigurationFactory(); URL configURL = new File(config.xml).toURL();