i have 2 external properties security.properties and env.properties and i have a key in security.properties as key1 and i want to replace this key1 value based on the env.properties key1
ex:
security.properties
hibernate.connection.url=jdbc:oracle:thin:@localhost:4521/NGI
env.properties
jdbc.url=jdbc:oracle:thin:@localhost:4521/NGI (it defers based on the environment)
i want to replace the hibernate.connection.url to jdbc.url based on the loaded environment.
I tried the following option, but i get a build failure error
<configuration>
<file>target/${project.artifactId}/security.properties</file>
<replacements>
<replacement>
<token>${hibernate.connection.url}</token>
<value>${jdbc.url}</value>
</replacement>
</replacements>
</configuration>
please share your suggestions