You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bu...@apache.org on 2001/12/24 21:44:32 UTC

DO NOT REPLY [Bug 1550] - delete task follow symbolic links

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=1550>.
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=1550

delete task follow symbolic links





------- Additional Comments From mnelson@level1.com  2001-12-24 12:44 -------
This problem is not just with the delete task.  Suppose you want to copy a 
filesystem that contains symbolic links.  The JVM will happily follow the 
symbolic links rather than copy the links themselves.

For a specific example, we host a large website.  The top-level pages have 
symbolic links that Apache follows to the content.  We can't use Ant to copy 
the pages from our source to destination because Ant will follow the links and 
copy the content.

We get around this problem by using the <exec> task and calling tar/untar to 
perform the copy.

Fundamentally, the problem is that Java has little or no knowledge of symbolic 
links.  Unfortunately, this won't get into the 1.4 JDK.

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>