03/21/2018
<copy file="OLD_FILE_NAME" tofile="NEW_FILE_NAME"/>
The copy task has a parameter named tofile, that can be used to pass the new name of a file when copying it. This copies and renames the files at the same time.
Apache Ant
Ant copy