Return-Path: Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 67280 invoked by uid 500); 11 Jul 2003 09:41:00 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 67263 invoked from network); 11 Jul 2003 09:40:59 -0000 Received: from gate.corvil.net (HELO corvil.com) (213.94.219.177) by daedalus.apache.org with SMTP; 11 Jul 2003 09:40:59 -0000 Received: from preilly.local.corvil.com (preilly.local.corvil.com [172.18.1.173]) by corvil.com (8.12.9/8.12.5) with ESMTP id h6B9f8oA041178 for ; Fri, 11 Jul 2003 10:41:09 +0100 (IST) (envelope-from peter.reilly@corvil.com) Subject: Re: Unable to delete directory From: peter reilly To: Ant Users List In-Reply-To: <00cf01c34789$edb157a0$020200c0@DJ0X820J> References: <1057913400.28864.50.camel@preilly.local.corvil.com> <00cf01c34789$edb157a0$020200c0@DJ0X820J> Content-Type: text/plain Organization: Message-Id: <1057916775.28864.62.camel@preilly.local.corvil.com> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.2 (1.2.2-4) Date: 11 Jul 2003 10:46:15 +0100 Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi Antonie, Can you check the patch on Win2000? and see if the random failures go away. (The sleep time may need to be increased). If the random failures go away, I think the change should be committed. I am not to sure if it is a good idea to put the delete() hack^Wmethod in FileUtils, but perhaps. Cheers, Peter On Fri, 2003-07-11 at 09:53, Antoine Levy-Lambert wrote: > 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" > 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 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