I am trying to copy the directory /a/b/DIRtoCOPY to /d/e I am using the below code, but it copies the content of DIRtoCOPY directory to e, rather than /d/e/DIRtoCOPY.
def destLocation="/d/e"
def sourceDir="/a/b/DIRtoCOPY"
project.ant.copy(destLocation,overwrite:true)
{
fileset(dir:sourceDir)
}
Any help is much appreciated.