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 1550] - delete task follow symbolic links
Date Mon, 24 Dec 2001 20:44:32 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=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:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message