Add details when throwing ConfigurationNotFoundException
Brought to you by:
jferrergerminus,
jorgeferrer
When exception is thrown:
com.germinus.easyconf.ConfigurationNotFoundException: Error reading configuration for lbtr: The base properties file was not found
it's not entirely clear which file is misssin (also happens when missing global-properties).
It'd be easier for newbies to know which property file is being searched, and not found, to have the filename searched in the message, as well as which location is finally being searched (this may be harder to implement).
Sorry for the anonymous post, I submitted it accidentally
Hi Miguel, sorry for not answering you before, but sourceforges notification system has changed. We are trying to move the project again and do this modifications and upgrades.
Anyway, Miguel, you can always see which jars have been loaded in your log:
18:05:05,616 INFO [ConfigurationLoader:56] Properties for cms_tools loaded from [jar:file:/home/user/servers/tomcat/lib/ext/conf.jar!/global-configuration-env.properties, jar:file:/home/user/servers/tomcat/lib/ext/conf.jar!/global-configuration-prj.properties, jar:file:/home/user/servers/tomcat/lib/ext/conf.jar!/global-configuration.properties, file:/home/user/servers/tomcat/webapps/cms_tools/WEB-INF/classes/cms_tools.properties]