[Commons Configuratin]: Suppress exceptions about missing optional property files?

2008-04-05 Thread uma_rk
I am using the latest commons config on JDK1.6. Is there a way to suppress exceptions pertaining to missing optional property files? Thanks, /Ur Configuration: Exception: Caused by: org.apache.commons.configuration.ConfigurationException: Cannot locate configuration source /home/jdo

Re: [Commons Configuratin]: Suppress exceptions about missing optional property files?

2008-04-06 Thread Emmanuel Bourg
Try using ConfigurationBuilder instead of ConfigurationFactory, you shouldn't have this exception. Emmanuel Bourg [EMAIL PROTECTED] a écrit : I am using the latest commons config on JDK1.6. Is there a way to suppress exceptions pertaining to missing optional property files? Thanks, /Ur Con

Re: [Commons Configuratin]: Suppress exceptions about missing optional property files?

2008-04-08 Thread Gavin Eadie
On Apr 6, 2008, at 4:42 PM, Emmanuel Bourg wrote: Try using ConfigurationBuilder instead of ConfigurationFactory, you shouldn't have this exception. I get it with the following: try { DefaultConfigurationBuilder builder = new DefaultConfigurationBuilder(); builder.setURL(confi

Re: [Commons Configuratin]: Suppress exceptions about missing optional property files?

2008-04-08 Thread Oliver Heger
Gavin Eadie schrieb: On Apr 6, 2008, at 4:42 PM, Emmanuel Bourg wrote: Try using ConfigurationBuilder instead of ConfigurationFactory, you shouldn't have this exception. I get it with the following: try { DefaultConfigurationBuilder builder = new DefaultConfigurationBuilder();

Re: [Commons Configuratin]: Suppress exceptions about missing optional property files?

2008-04-09 Thread Gavin Eadie
That makes perfect sense, and is a nice design -- thanks for the explanation .. Gavin _ On Apr 8, 2008, at 8:51 PM, Oliver Heger wrote: If a configuration marked as optional cannot be loaded, DefaultConfigurationBuilder notifies all registered error listeners

Re: [Commons Configuratin]: Suppress exceptions about missing optional property files?

2008-04-10 Thread uma_rk
ConfigurationBuilder yields CombinedConfiguration. I have so far based my stuff on CompositeConfiguration. I do not see a type relationship (is-a) between the two. How do we migrate from CompositeConfiguration to CombinedConfiguration? What are the risks? Regards /Ur -- Original m

Re: [Commons Configuratin]: Suppress exceptions about missing optional property files?

2008-04-12 Thread Oliver Heger
[EMAIL PROTECTED] wrote: > ConfigurationBuilder yields CombinedConfiguration. > I have so far based my stuff on CompositeConfiguration. > I do not see a type relationship (is-a) between the two. > How do we migrate from CompositeConfiguration to > CombinedConfiguration? > > What are the risks? >