Menu

#2 make the "useDb" config String instead of boolean

open
nobody
None
5
2010-12-06
2010-12-06
Anonymous
No

UseCase: we want to be able to use a templating engine to replace certain configuration values which are not in the hands of our developers by those used by the it administration, e.g. database settings and the likes. Since some stages do not need to be monitored we would like to switch monitoring on and off depending on profile of this templating engine. Currently we would need additional maven profiles which would be identical save the "useDb" switch and corresponding settings.

Resolution: it would seem that "useDb" is declared boolean and on creation of the monitoring config file only outputs "true" if it contains "true" and "false" in every other instance. If "useDb" would be a String, we could insert a template placeholder for our templating engine, e.g. @monitoring.usedb@. Currently this results in the value "false" being outputted to the monitoring config file, whereas we would expect it to output the value "@monitoring.usedb@" which could then be replaced by our templating engine.

Discussion


Log in to post a comment.