Duke icon indicating copy to clipboard operation
Duke copied to clipboard

Support for deployment-independent configurations

Open larsga opened this issue 11 years ago • 2 comments

From [email protected] on March 09, 2012 13:44:46

It's a problem that the current Duke configuration mixes deployment-specific details in with the more general mapping and comparison setup. The actual server names, database names, user names and passwords will differ with the deployment environment, but the overall configuration is likely to remain the same.

In order to avoid having to create different XML files for different environments it should be possible to preload a duke.properties file that sets certain variables, which can then be referred to from the configuration file. Then one can have a single .xml file and several small .properties files.

Original issue: http://code.google.com/p/duke/issues/detail?id=72

larsga avatar Feb 15 '14 09:02 larsga

From [email protected] on April 19, 2013 12:06:06

It would also be desirable to allow the configuration to be in different formats other then on disk. Modifying the Configuration class to be an interface would allow different implementation to choose where to pull the data from.

I would be willing to make this change and add support for yaml configuration files. It would also allow implementations to offer other forms of configuration such as db etc.

Please let me know if you would like me to make the changes.

Phil

larsga avatar Feb 15 '14 09:02 larsga

From [email protected] on April 20, 2013 01:21:52

Phil, this is an interesting suggestion, but it's a separate issue, so I created issue 115 for it. Sorry to be so picky, but separating the issues makes things easier to keep track of.

larsga avatar Feb 15 '14 09:02 larsga