ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From peter reilly <peter.rei...@corvil.com>
Subject Re: Unable to delete directory
Date Mon, 14 Jul 2003 15:44:24 GMT
Hi Michael,

Can you apply the patch locally and see if
it fixes the problem you found.

Peter

On Mon, 2003-07-14 at 16:28, Michael.Giroux@Bull.com wrote:
> I have just downloaded the nightly build for 7/14/03, and I do not see the
> suggested changes for delete.  Has there been an agreement to include this
> change?  If so, when might I see a build containing the fix?
> 
> Michael Giroux
> 
> 
> |---------+---------------------------->
> |         |           "Antoine         |
> |         |           Levy-Lambert"    |
> |         |           <antoine@antbuild|
> |         |           .com>            |
> |         |                            |
> |         |           07/11/2003 01:53 |
> |         |           Please respond to|
> |         |           "Ant Users List" |
> |         |                            |
> |---------+---------------------------->
>   >--------------------------------------------------------------------------------------------------------------|
>   |                                                                                 
                            |
>   |       To:       "Ant Users List" <user@ant.apache.org>                    
                                  |
>   |       cc:                                                                       
                            |
>   |       Subject:  Re: Unable to delete directory                                  
                            |
>   >--------------------------------------------------------------------------------------------------------------|
> 
> 
> 
> 
> Hi Peter,
> This problem also happens actually on Windows 2000. I see this problem
> happening when I run the whole ant test suite. Occasionnally and randomly,
> one test or the other will generate an error, typically in the cleanup
> phase
> when a directory gets deleted. If I retry the failing test afterwards, the
> error will have vanished. If I rerun the testsuite, then 0 to 3 tests are
> going to fail similarly.
> I have a virus checker running on my PC, it might be true that the problem
> occurs due to it, I never had the idea before.
> The fix you are suggesting looks like a good idea, but the delete method
> should rather be added to FileUtils so that it gains more visibility.
> Antoine
> From: "peter reilly" <peter.reilly@corvil.com>
> To: "Ant Users List" <user@ant.apache.org>
> Sent: Friday, July 11, 2003 10:50 AM
> Subject: Re: Unable to delete directory
> 
> 
> > The following is pure speculation, as I do
> > not currently use NT/Win/WinXp.
> >
> > This may be related to a virus checker.
> >
> > On NT one is not allowed to delete files/directories
> > if another process have them open. (perhaps only
> > ntfs filesystem).
> >
> > A virus checker can be registered to be called
> > back when contents of a directory change (files added
> > or removed).
> >
> > This would imply that there could be a race condition
> > between a virus checker and a process iterating through
> > a directory tree deleting files and their directories.
> >
> > The fix you suggest may solve the problem (at least sometimes).
> >
> > Can you apply the included patch to Delete.java in the
> > nightly build to check if this is correct.
> >
> > Peter.
> >
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 
> 
> 
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message