|Summary:||<untar> does not untar symbolic links properly|
|Product:||Ant||Reporter:||Sharad Jain <s.jain>|
|Component:||Core tasks||Assignee:||Ant Notifications List <notifications>|
|Severity:||enhancement||CC:||gus.heck, marius.scurtescu, tcurdt|
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