I have a HTML page which consist of <script>
tag as follows
<script type="text/javascript">
window.location ="THIRD PARTY URL"
</script>
The above code runs properly.
Now my requirement is: change the value of this Third Part URL from one environment to another during Deployment Time.
This THIRD PARTY URL will vary in DEV Environment, UAT environment and Production environment.
I don't want to change this value manually every time before deploying the EAR to my Weblogic server. Instead I am looking for some script which can perform this task.
I know using ANT script it can be done.
But I am not able to figure out the exact configuration of build.xml required for my case.
I have already gone through the following links in stackoverflow:
ANT replacing strings in specified files using file with properties
Has anyone any suitable solution to this?