commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oliver Heger <oliver.he...@oliver-heger.de>
Subject Re: [commons] - Inconsistent way to locate filename when creating configuration
Date Thu, 15 Jun 2006 17:01:08 GMT
Oliver Heger wrote:
> gabriele.garuglieri@infoblu.it wrote:
>> Hi Oliver,
>> is there any particular reason why if, when "conf/conf1.properties" is 
>> in classpath, doing PropertiesConfiguration pc = new 
>> PropertiesConfiguration(
>> "conf/conf1.properties");
>>
>> gives org.apache.commons.configuration.ConfigurationException: Cannot 
>> locate configuration source conf1.properties
>>
>> while doing PropertiesConfiguration pc = new PropertiesConfiguration();
>> pc.setFileName("conf/conf1.properties");
>> pc.load();
>>
>> properly locate file in classpath and loads it?
>>
>> Thanks, Gabriele
>>
> Hm, no. Both ways of loading the configuration file should behave the 
> same. Will have a look.
> 
> Oliver
> 
Okay, I can now confirm that this is a bug. Would you please be so kind 
to open a ticket in our bug tracking system (see [1])?

Thanks!
Oliver

[1] http://jakarta.apache.org/commons/configuration/issue-tracking.html

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message