Replace property value in a properties file by other value in another properties file in a java application


(Patrick Vanhuyse) #1

In a java application I have myapp-profile-a.properties in the root of the application (and other profile properties file too) containing : my.property=my value and I have my-app.properties in my resources containing : my.real.property=${my.property}

How can I do to replace ${my.property} by the value in myapp-profile-a.properties during the build ?

Thanks.