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

In a java application I have in the root of the application (and other profile properties file too) containing : value and I have in my resources containing :${}

How can I do to replace ${} by the value in during the build ?