ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antoine Levy-Lambert" <>
Subject Re: Unable to delete directory
Date Fri, 11 Jul 2003 08:53:41 GMT
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.
From: "peter reilly" <>
To: "Ant Users List" <>
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 in the
> nightly build to check if this is correct.
> Peter.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message