Gradle copy task not copying files from temp folder first time around
问题 I've a build file that runs tasks like this. Task 1 ( unpackWar ) : Unzips war file to Temp folder Task 2 ( copyWarFilesToWebContent ) : Copies the files to WebContent folder with some exclusions Task 3 ( copyRequiredJarFilesToWebContent ) : Unzips a couple of jar files from Temp/WEB-INF/lib to TempJarDir Task 4 ( explodeProductJars ) : Copies files we want from TempJarDir to WebContent folder There is a single prepare task that runs each of these tasks using dependsOn and I've added