The FlattenMapper
removes the directories from a filename and
solely returns the filename.
<copy todir="/tmp"> <mapper type="flatten" /> <fileset refid="someid" /> </copy>
This code will copy all files in the fileset to /tmp. All files will be in the target directory.