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 13353] - <delete> follows symbolic links to directories at risk of great data loss!
Date Fri, 11 Oct 2002 13:48:06 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13353>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13353

<delete> follows symbolic links to directories at risk of great data loss!

bodewig@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WONTFIX



------- Additional Comments From bodewig@apache.org  2002-10-11 13:48 -------
Well, it all is about backwards compatibility, sorry.

<delete dir="somedir"/>

is the traditional way to say "delete this directory and all its contents,
don't ask any questions.  The kind of task you use when running a "clean" target.

If you want to do anything more sophisticated, use nested filesets.

<fileset> in turn didn't know about symbolic links until Ant 1.5 (as Java doesn't
know about them and we are still not sure whether the code we use works for
all operating systems - especially systems that are not Unix-like).  To have
the complete same semantics as Ant 1.4, the only possible choice for Ant
is to follow symbolic links by default.

<delete> is special in a certain sense - it supports an followsymlinks attribute
(inherited by MatchingTask) but ignores it unless you've also specified
some include or exclude patterns.  This is going to be fixed in CVS in a few
minutes.  After that,

<delete dir="foo" followsymlinks="false"/>

is going to be close to what you want, but still not the default.

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


Mime
View raw message