I have a large set of files (8000+ files, 280 megs) that need to be copied on a regular basis (collected from a bunch of directories into a single app directory). After switching from Ant to Gradle, my developers are complaining that the copy task takes a lot longer to run than it used to (on my machine, it’s 50 seconds vs 15 seconds, and I have one of the fastest machines).
After some investigating, it seems that Ant’s copy task is smart enough to copy only what’s changed, while Gradle’s Copy is all or nothing. I believe I saw something about using enabling incremental compilation for compile tasks; is there something similar for Copy tasks?
I know I could use Ant’s copy from inside Gradle, but I’d rather not: I have a single configurator that I use to configure both a Copy task and a Tar task, but if I use ant.copy, I’ll have to maintain two sets of code that do the exact same thing.