I have a bunch of templates that I expandproperties on to produce environment specific versions using the following code:
<copy file="${current.file}" flatten="true" todir="${dir.dist}/${current.env}"> <filterchain> <expandproperties/> </filterchain> </copy> The file name ( in the property ${current.file} ) contains the name "TEMPLATE" and I want to remove once I perform this move. For example: log4j.properties.TEMPLATE that I want to strip the ".TEMPLATE" part when I copy this file. What is the best way to accomplish this task? Eric