commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gabriele.garugli...@infoblu.it
Subject Re: [commons] - Inconsistent way to locate filename when creating configuration
Date Fri, 16 Jun 2006 05:47:32 GMT
Oliver Heger <oliver.heger@oliver-heger.de> scritti il 15/06/2006 19.01.08

> 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
> 

Ok done.
Ref: http://issues.apache.org/jira/browse/CONFIGURATION-216

(i couldn't find the 1.3-dev listed in the versions against which open the 
bug)

Thanks,  Gabriele

---------------------------------------------------------------------
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