My HTML page includes a <script>
tag with the following code:
<script type="text/javascript">
window.location ="THIRD PARTY URL"
</script>
The code above functions correctly.
Now, I need to change the value of the Third Party URL from one environment to another during Deployment Time. This URL will differ in DEV Environment, UAT environment, and Production environment.
Instead of manually changing this value before deploying the EAR to my Weblogic server every time, I am searching for a script that can automate this task.
I am aware that it can be done using an ANT script.
However, I am struggling to determine the specific configuration of build.xml required for my scenario.
I have already reviewed the following links on stackoverflow:
ANT replacing strings in specified files using file with properties
If anyone has a viable solution to this issue, please share!