Shipping jar with default .properties file configurations
- by Maxim Veksler
Hello,
I would like to include a default default.properties file in my .jar library. The idea is to allow the user to override my default is he so desires.
I'm having trouble getting the classloader to play nicely with this setup, I've tried to look a at popular jars such as log4j, common-* and others and it seems that no one is implementing this idea. Am I going the wrong way?
The second best thing is hard coding the values, and using the default if no .properties key has been found, but this sound oh so wrong.
Suggestions?