commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oliver Heger (JIRA)" <>
Subject [jira] Commented: (CONFIGURATION-216) Inconsistent way to locate filename when creating configuration
Date Thu, 22 Jun 2006 19:31:32 GMT

Oliver Heger commented on CONFIGURATION-216:

You are right! The problem did not occur to me because I use the maven build. And after a
maven build ran successfully the ant build is successful, too, because maven copies the files
to the right location.

Well, I changed the copying stuff in build.xml, and now both builds should work. Sorry!

> Inconsistent way to locate filename when creating configuration
> ---------------------------------------------------------------
>          Key: CONFIGURATION-216
>          URL:
>      Project: Commons Configuration
>         Type: Bug

>  Environment: commons-configuration-1.3-dev
>     Reporter: Gabriele Garuglieri
>     Assignee: Oliver Heger
>     Priority: Minor

> There is a different behaviour locating the configuration file in classpath depending
on the way it is set in the configuration class.
> For example assuming "conf/" exists in classpath:
> PropertiesConfiguration pc = new PropertiesConfiguration("conf/");
> gives org.apache.commons.configuration.ConfigurationException: Cannot locate configuration
> while
> PropertiesConfiguration pc = new PropertiesConfiguration();
> pc.setFileName("conf/");
> pc.load();
> properly locate file in classpath and loads it.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message