Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #27381 > unrolled thread

symbolic links cannot be preserved by ant tar

Started byzyng <xsli2@yahoo.com>
First post2014-01-21 15:35 -0800
Last post2014-02-03 14:56 +0000
Articles 2 — 2 participants

Back to article view | Back to comp.lang.java.programmer


Contents

  symbolic links cannot be preserved by ant tar zyng <xsli2@yahoo.com> - 2014-01-21 15:35 -0800
    Re: symbolic links cannot be preserved by ant tar Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at> - 2014-02-03 14:56 +0000

#27381 — symbolic links cannot be preserved by ant tar

Fromzyng <xsli2@yahoo.com>
Date2014-01-21 15:35 -0800
Subjectsymbolic links cannot be preserved by ant tar
Message-ID<bb837d1c-b263-47ee-9145-10d3559d1e33@googlegroups.com>
Hi:

I just found that when using the ant task "tar" to create a tar file, the links can not be preserved -- this is different from GNU tar feature.

In another words, if the directory to be tarred containing:

libfoo.so --> libfoo.so.0
libfoo.so.0 --> libfoo.so.0.4
libfoo.so.0.4
(very common scenario in shared object library files in *nix OS)

By default(followsymlinks is true), when I tarred and untarred the created tar file, there will be 3 identical files with different names:

libfoo.so
libfoo.so.0
libfoo.so.0.4

This is considered a bug by Ant developers:

https://issues.apache.org/bugzilla/show_bug.cgi?id=15244

https://issues.apache.org/bugzilla/show_bug.cgi?id=14320

I am wondering if there is a solution now, or I have to live with it.

Thank you very much.

[toc] | [next] | [standalone]


#27450

FromAndreas Leitgeb <avl@gamma.logic.tuwien.ac.at>
Date2014-02-03 14:56 +0000
Message-ID<slrnlevbgf.ngg.avl@gamma.logic.tuwien.ac.at>
In reply to#27381
zyng <xsli2@yahoo.com> wrote:
> I just found that when using the ant task "tar" to create a tar file, the links can not be preserved -- this is different from GNU tar feature.

Maybe you can get ant to call (gnu-)tar directly, instead of using the
tar task?

Not an ant expert, myself, and only answering because I don't see any
other reply, yet.

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.java.programmer


csiph-web