Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Java Generate software configuration

I am working on a project which has some .properties configuration files for datasource, MQ and some other stuff. We do also have launch shell scripts and user profile scripts. The problem i am facing is that we do actually deploy this software on 5 different environments, and of course the configuration is different for each of them. It's being a little bit hard to maintain about 30 plain text files with the configuration. Most of them are pretty much equal, like shell scripts that only have some different path references on.

Do you guys know any kind of tool i could integrate on our build script that might grab these properties from a single file or an embedded database and then generate the proper environment configuration? If it could also generate the scripts it would be even more interesting.

Thanks

like image 219
Luciano Greiner Avatar asked Jun 08 '26 19:06

Luciano Greiner


1 Answers

Maven provides this out-of-the-box: http://maven.apache.org/guides/mini/guide-building-for-different-environments.html.

like image 82
Kurt Du Bois Avatar answered Jun 11 '26 08:06

Kurt Du Bois