Copy task is hanging

Hi,

I am new to gradle, trying to use copy task in my gradle. My source has only one file, but the destination location having huge number of files. I am not sure if my code is scanning the entire destination before finishing the actual copy of files, but it is hanging for long time more than 10 minutes. Please suggest if i need to fix something in my code. Also this code i have written to copy only subfolders and files from source to destination not the top parent directory.

task updatefiles(type: Copy) {
doFirst {
println “===> Updating files…”
}
println “===> ${sourcedir}”
println “===> ${destdir}”

    from "${sourcedir}/",{
    include '**'
    }
    into "${destdir}/"
    duplicatesStrategy "exclude"

}