If I run this task:
task installToD(type:Copy, dependsOn:jar) {
from jar.archivePath
into 'd:\'
doFirst {
println("copying ${jar.archivePath} to d:\")
}
}
I get this error:
Could not list contents of 'D:\$RECYCLE.BIN\S-1-5-21-2293175052-310923245-3086691237-500\$R8BCRX2\My Music'.
But if I write the same task like this, then it works fine:
task installToD(dependsOn:jar){
doLast {
copy {
from jar.archivePath
into 'd:\'
println("copying ${jar.archivePath} to d:\")
}
} }
Why is that?
Gradle 1.11 ------------------------------------------------------------
Build time:
2014-02-11 11:34:39 UTC Build number: none Revision:
a831fa866d46cbee94e61a09af15f9dd95987421
Groovy:
1.8.6 Ant:
Apache Ant(TM) version 1.9.2 compiled on July 8 2013 Ivy:
2.2.0 JVM:
1.7.0_51 (Oracle Corporation 24.51-b03) OS:
Windows 7 6.1 amd64