1: def ant = new AntBuilder()
2: ant.copy(file: 'src.txt', tofile: 'dest.txt')
Copying a File to a Directory / Overwriting the Destination File
1: ant.copy(file: 'src.txt', todir: '../backup')
2: ant.copy(file: 'src.txt', tofile: 'dest.txt', overwrite: true)