I need to replace all occurrence of some regular expression in xml file with proper values loaded from property file. As example
- in xml file I have
< port=${jnpPort}/>
- in property file I have
port=3333
I want to have xml file with entries like < port=3333/>
Now using
<replaceregexp match="\$\{(.*)\}" replace="${\1}" flags="g" byline="true">
<fileset dir="." includes="file.xml"/>
</replaceregexp>
I get pretty much the same <port=${jnpPort} />
. I would like value of ${jnpPort} were read from property file.