Copy the content of file into another file


Can anyone please tell us how to copy the content of an file into another file. Actually I look to an equivalent to this ANT code:

<move file="${build.dir}/src/" tofile="${build.dir}/src/"/>

Thanks for your help!!!

Well I have found a solution using Ant call from Gradle:


But, I still looking for pure gradle code example. Thank you. and will do a copy. There is no move task, but most things work better (i.e. incrementally) with copy and clean.