On Thu, 2008-10-23 at 12:11 +0200, Hans Dockter wrote:

> > The implication is that a directory with a still open file is being
> > deleted -- possibly in buildSrc/tmpTest/root ?
> 
> the delete logic that is used can be found in: src/main/groovy/org/ 
> gradle/util/GradleUtil.groovy and the method deleteDir.
> 
> The VersionTest is calling the delete method in its tearDown method.  
> Could you switch back to the AntBuilder delete in GradleUtil and add  
> set the quiet attribute to true?

Current guess is that this is a timing problem -- the new code now
sometimes works on my P4 but not on the twin-quad-xeon or the Mac MIni.

Worrying about the buildSrc problem initially:  I wonder if the problem
is that the directory buildSrc/tmpTest/root is being deleted and then
buildSrc/tmpTest is being delete and the speed with which the Java code
executes is too quick for NFS, so there is a .nfs file in
buildSrc/tmpTest at the point at which the delete happens.

I tried putting in a Thread.sleep ( 1000 ) into GradleUtil.deleteDir but
it made no difference.  Actually I put a System.err.println in there and
nothing was printed out so either all IO is being redirected or it never
got into that method.

If you want to do this over XMPP my id is [EMAIL PROTECTED]

-- 
Russel.
====================================================
Dr Russel Winder                 Partner

Concertant LLP                   t: +44 20 7585 2200, +44 20 7193 9203
41 Buckmaster Road,              f: +44 8700 516 084
London SW11 1EN, UK.             m: +44 7770 465 077

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to