Programming Tips - Ant: How to copy a file to a folder?

Date: 2014jun17 Product: Apache Ant Keywords: build Language: XML Q. Ant: How to copy a file to a folder? A. This code does it:
<copy file="myfile.txt" todir="/tmp"/>