Class Copy

java.lang.Object
All Implemented Interfaces:
Cloneable
Direct Known Subclasses:
Move, Sync.MyCopy

public class Copy extends Task

Copies a file or directory to a new file or directory. Files are only copied if the source file is newer than the destination file, or when the destination file does not exist. It is possible to explicitly overwrite existing files.

This implementation is based on Arnout Kuiper's initial design document, the following mailing list discussions, and the copyfile/copydir tasks.

Since:
Ant 1.2