First of all, these are examples from the Ant documentation:
Copy directory to another directory
<copy todir="../new/dir">
<fileset dir="src_dir"/>
</copy>
Copy the set of files to the directory
<copy todir="../dest/dir">
<fileset dir="src_dir">
<exclude name="**/*.java"/>
</fileset>
</copy>
<copy todir="../dest/dir">
<fileset dir="src_dir" excludes="**/*.java"/>
</copy>
Copy the set of files to the directory by adding .bak to the file name on the fly
<copy todir="../backup/dir">
<fileset dir="src_dir"/>
<globmapper from="*" to="*.bak"/>
</copy>
Secondly, here is the whole documentation about the copy task.
source
share