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 15244] - tar task should be able to store symbolic links as links
Date Tue, 10 Dec 2002 21:02:23 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=15244>.
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=15244

tar task should be able to store symbolic links as links





------- Additional Comments From gus.heck@olin.edu  2002-12-10 21:02 -------
Though not strictly a duplicate, this bug is almost exactly the same issue as 
but 14320 

Reading bug 1550 will also shed light on why this is quite a difficult problem
to address. 

The symlink task provides a means by which to record links in an abosolute form,
but this probably won't meet your needs unless you are untaring the tarballs
with ant and can use the symlink task to recreate the links.

Relative links are unfortunately impossible to percieve due to the limmitations
of Java. I did find a fairly cool way to get relative links on linux though by
recording and unpacking the links in a temp file that always resides in the
exact same location in the filesystem. When you do this, you can exec "symlinks
-rcs" in the top level directory twice before recording and twice after
expansion to get identical relative links (mixed relative and aboslute would
require creative use of apply and symlinks).

If I find some time I hope to add this tip/trick in more explicit/clearer form
to the docs for symlinks. Unfortunately, it is horribly platform/os specific
though :(. I don't think all unicies have a symlinks command.

--
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