-
Notifications
You must be signed in to change notification settings - Fork 35
Description
I hate having to re-build mirth.properties and others for each upgrade because there are new things in it. I would love to have a single default config file that ships with every version, but my actual configuration ends up being in a file that doesn't get overwritten and doesn't need to be manually merged-into the new one.
If the product would ship with a default properties file containing certain things (like defaults!) and then you could overlay others, that would be very beneficial.
So instead of a single file to load, it will load a few things, in order.
Always load oie.properties first. Then, load mirth.properties as a really convenient migration strategy for existing users, and overwrite any previous values with stuff from mirth.properties. Then, read local.properties and overwrite again.
Anyone who wants to can use mirth.properties forever. But the product can change it's default default filename to something that doesn't say "mirth" anymore.
If you want to go crazy, you can read files.to.load from oie.properties, then append anything that any of the files.to.load also requests, and so on. So mirth.properties or local.properties can set files.to.load=database.properties and then OIE also loads database.properties even though it wasn't known about in advance.
You could do the same for logging configuration, but I'm not sure how well that would work with the current log4j system. It would be enough to layer primary configuration files (i.e. what is currently mirth.properties).