I have a ant property app.prod= production
During the an build, I want to replace all files in a particular directory with production in its name to same nma e without 'production' in it.
Example
File names are
- abcproduction.xls
- cdeproduction.xls
I want to remove change the file names to abc.xls cde.xls
<regexpmapper from="(.*)${app.prod}(.*)" to="\1\2" /> FAILS
<regexpmapper from="(.*)(${app.prod})(.*)" to="\1\2" /> FAILS
<regexpmapper from="(.*)production(.*)" to="\1\2" /> WORKS!!
BUT I want to use the property - app.prod Any suggestions