For my current project (Better Checks - a small argument validation library), I am trying to figure out where (in the classpath) the applications using the library should put the configuration file. It is a .properties file with customized error message formats.
Is there a standard or de facto standard location for library config files?
My current take is /better-checks.properties
. I am a bit worried that this is not a good idea, since it is directly in the root of the classpath and might theoretically collide with some other file.
An alternative would be to put it into the root package of the library, /ch/trick17/betterchecks/config.properties
which would prevent name collisions but seems a bit weird.
Edit: Take into account that if I want to support internationalization by using resource bundles, applications might end up with many better-checks_*.properties
in the classpath root. This is not very nice, is it?