You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bu...@apache.org on 2008/10/19 13:21:54 UTC

DO NOT REPLY [Bug 45786] ANT and NFS, Delete task - "Unable to delete directory"

https://issues.apache.org/bugzilla/show_bug.cgi?id=45786





--- Comment #2 from J.M. (Martijn) Kruithof <jk...@apache.org>  2008-10-19 04:21:53 PST ---
This is general behavior of NFS based file systems, under normal unix
filesystems a file is referenced by either the file system or by an process or
both. The reference from the file system can be removed, the reference to the
already deleted file from the running process remains open. (This process can
still read and/or write this file.) In case of an NFS file system a dummy entry
is created in the same directory. The open process has no handles on the
machine the file is located. To avoid the file being deleted while handles are
still open this .nfs entry is created. (removing this .nfs file, will just
cause a new .nfs file to be created as long as the process is running.)

The solution therefore is to close the open file handle to this jar file before
trying to delete the directory.

- When / why is this jar file opened ant?

- When should this jar file be released by ant?

In case the first question is answered with from the start (classpath provided
to ant when starting) there is nothing we can do.
In case the jar file is opened later we can see if it is possible to close the
classloader used to open the jar file. This may lead to the possible to delete
the file.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.