commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gabriele.garugli...@infoblu.it
Subject [commons] - Inconsistent way to locate filename when creating configuration
Date Wed, 14 Jun 2006 06:24:56 GMT
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


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