In Ant, by default, files with names ending with a ~
are excluded from all directory-based Ant tasks. From the Ant documentation on Default Excludes:
If you do not want these default excludes applied, you may disable them with the defaultexcludes="no" attribute.