Bug 19252

Summary: <untar> does not untar symbolic links properly
Product: Ant Reporter: Sharad Jain <s.jain>
Component: Core tasksAssignee: Ant Notifications List <notifications>
Status: NEW ---    
Severity: enhancement CC: gus.heck, marius.scurtescu, tcurdt
Priority: P3    
Version: 1.5.3   
Target Milestone: ---   
Hardware: Other   
OS: other   

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