Hi Jason,
Jason Nah wrote:
Howdy Folks,
I'm trying to use the inbuilt ConfigurationFactory but there's a couple of things which i've noted....
1. Is there a way to specify a property file to use and configuration will ignore the fact that it doesn't exist? (ie. optional properties could reside in a file that is optionally included). Right now, it throws exceptions if the file is missing.
No, it's a known limitation of [configuration], there is a bug covering this issue :
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=31797
2. If the answer to 2 is no... then is there a way I can extend this easily? I've had a look at the ConfigurationFactory class but it looks pretty involved.
There is no easy way to do it right now. A possible solution is to hack AbstractFileConfiguration.load(String fileName) and fail silently if the file is not found.
Emmanuel Bourg
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
