The files and directories are not read-only.

I've been told that if Ant uses a custom classloader (which I believe it does) then that may have locks on the files I have referenced. Perhaps I can set the classpath to empty to release the locks?

If anyone knows different then I'd be interested to hear from them.

Best Regards,


-----Original Message-----
From: Diane Holt [mailto:holtdl@yahoo.com]
Sent: 05 September 2000 03:51
To: Newland, Chris [HAL02:HG20:EXCH]
Subject: Re: problems with deltree and delete tasks

I'm probably asking the obvious, but have you checked the permissions on
the files/dirs?


--- Chris Newland <cnewland@nortelnetworks.com> wrote:
> Hi,
> I'm using Ant on a Windows NT system to checkout, build, and jar a
> Java-based project. When I try and use the deltree or delete tasks to
> clean
> up files that I dont need any more I get the error : build.xml:<line>:
> unable to delete <file>.
> All of the other tasks work fine.
> The error only seems to occur when I try and delete files or directories
> that I used in the classpath variable in a javac task.
> Has anyone else had this problem? Is there a workaround?
> Thanks,
> Chris
> --
> Chris Newland
> Software Research Engineer
> Advanced IP Services and Management
> Nortel Networks, London Road, Harlow, Essex, CM17 9NA.
> Tel:   +44(0)1279 405165
> Fax:   +44(0)1279 402047
> Email: cnewland@nortelnetworks.com
> "This message may contain information proprietary to Nortel Networks
> so any unauthorised disclosure, copying or distribution of its
> contents is strictly prohibited."
> ------------------------------------------------------------
> Company name: Nortel Networks plc
> Company number: 2515751
> Company's registered office address: Maidenhead Office Park,
> Westacott Way, Maidenhead, Berkshire SL6 3QH.
> ------------------------------------------------------------


Do You Yahoo!?
Yahoo! Mail - Free email you can access from anywhere!