ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 41285] - delete and symlink tasks do not delete a symlink if its target does not exist
Date Sat, 06 Jan 2007 01:14:29 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41285>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41285





------- Additional Comments From msander@ieee.org  2007-01-05 17:14 -------
(In reply to comment #4)
> The reason for this (and a number of other
> bugs with symbolic links) is that java
> does not understand symbolic links (or rather
> the symbolic link information is not given
> to the java user).
> See: 
> http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4956115
> (File.exists() reports false for symbolic links to nonexistent files)
> state:   	 Closed, not a bug
> And the evalulation:
> """This is not a bug.  In the absence of an API which exposes symbolic links in
> all their glory we don't have any choice but to treat a dangling symbolic link
> as a nonexistent file."""
> 
> There is a FRE http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4313887
> (which closes 35 other bugs)
> which asks talks about an extended api with support
> for symbolic links - currently slated for java 1.7.

Yes, I knew about the java limitation.  Surprising, isn't it, coming from Sun. 
Anyway,  I suspect that anyone who tries to use symlink delete or delete file
would expect that the symlink in question would be gone after running of the
task, regardless of whether the link or its target exists already, and
regardless of whether java thinks it exists.  Certainly that's what I would
expect.  
Looking at other bug reports about symlinks, I see that much trouble has been
taken to make sure that if you delete a "good" symlink, the target is not
deleted, only the link itself.  So I think it should be possible to fix this
without waiting for the new java RFE to be delivered.

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

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


Mime
View raw message