Many thanks. The -g option appears to have fixed the glitch. thanks, david
From: Adam Murdoch [mailto:[email protected]] Sent: Monday, June 27, 2011 8:17 PM To: [email protected] Subject: Re: [gradle-user] delete .gradle/caches On 28/06/2011, at 6:04 AM, David Abadir wrote: For the second time today I got this error (only on the CI server, not my local machine): org.gradle.api.UncheckedIOException: Could not add entry '1958' to cache 'C:\Documents and Settings\cfx_is_intgn\.gradle\caches\1.0-milestone-3\fileSnapshots\cache.bin'. After the first time I deleted the folder and the CI server successfully ran the tests for a few more hours. After it happened a second time I tried adding the following to build.gradle: clean.doFirst { def cache="${System.properties['user.home']}\\.gradle\\caches" delete(dir: cache, failonerror:true) System.out.println(file(cache).exists()) } But it hasn't yet deleted the folder. This step continues to fail with: Cause: java.io.IOException: The filename, directory name, or volume label syntax is incorrect Ideas on how to overcome either issue? Are you running multiple CI builds on the same machine? There are some concurrency problems in the cache implementations, so that they can sometimes break if you run multiple builds at the same time. A work around is to run each CI build with the -g option, to give each build a separate cache directory. -- Adam Murdoch Gradle Co-founder http://www.gradle.org VP of Engineering, Gradleware Inc. - Gradle Training, Support, Consulting http://www.gradleware.com
