For a project I have a set of old .properties files, some are templates with ${placerholder} values and some are the "real" properties files that have key-value settings. Depending on the start parameter, the .properties template files have to be filled with the real values. The placeholder can be written with one or more dot annotations such as ${acount.money.euro} etc.
I cant seem to find a gradle way of filling those properties if:
- the value is missing or should just be empty or have the placeholder
- the value is written in dot annotation
I can do it in ANT but cant find a way to do it in gradle. Either the value cant be found for the dot annotations or the values are not filled at all or the missing value for the placeholder is making the script crash.
Anyone knows the right way to configurate .properties in gradle style? There are no real tutorials for it.