Bug 19252 - <untar> does not untar symbolic links properly
Summary: <untar> does not untar symbolic links properly
Status: NEW
Alias: None
Product: Ant
Classification: Unclassified
Component: Core tasks (show other bugs)
Version: 1.5.3
Hardware: Other other
: P3 enhancement with 2 votes (vote)
Target Milestone: ---
Assignee: Ant Notifications List
: 43187 (view as bug list)
Depends on:
Reported: 2003-04-23 16:52 UTC by Sharad Jain
Modified: 2008-11-24 03:57 UTC (History)
3 users (show)


Note You need to log in before you can comment on or make changes to this bug.
Description Sharad Jain 2003-04-23 16:52:45 UTC
The <untar> task does not properly restore the symbolic link from the tar. On 
Unix (I tried on Linux and SGI), I created a tar with a symbolic link in it. I 
can untar this file fine with "tar xvf <file.tar>" command but using <untar> 
command, the links are created as regular files with 0 (zero) size.
Comment 1 Stefan Bodewig 2003-04-24 06:08:01 UTC
I guess you are aware of the fact that Java doesn't know about symlinks at all.

It may be possible to check whether ln is available as a command and execute
it if a symbolic link inside the archive is encountered, that's why I didn't
close this report as WONTFIX right away.

If you want to take a stab at it, look into the new <symlink> task in Ant's
CVS repository to get an idea of what is involved here.
Comment 2 Gus Heck 2003-04-24 18:04:14 UTC
You may also want to note bug 15244, and read the old bug 1550.
Comment 3 Stefan Bodewig 2008-09-04 06:26:26 UTC
*** Bug 43187 has been marked as a duplicate of this bug. ***