You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bu...@apache.org on 2010/12/14 11:53:26 UTC

DO NOT REPLY [Bug 50469] New: Enable create symbolic links int tar

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

           Summary: Enable create symbolic links int tar
           Product: Ant
           Version: nightly
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Compress Antlib
        AssignedTo: notifications@ant.apache.org
        ReportedBy: tvrdik@centrum.cz


Created an attachment (id=26400)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=26400)
Pach for add setLinkName method to TarEntry

TarEntry can create a link file, but not implement set method for this.

This patch create setLinkMethod and removed some inefficient turnover. Eg.
create StringBuffer with empty String, duplicate set devMajor/devMinor.

For testing call:

final String nameInArchive = "someFile";
... standard add file to TarOutputStream ...

final String symbolicLink = "symlinkTo" + nameInArchive;
final TarEntry symLinkEntry = new TarEntry(symbolicLink,
TarConstants.LF_SYMLINK);
symLinkEntry.setLinkName(nameInArchive);
TarOutputStream..putNextEntry(symLinkEntry);
TarOutputStream..closeEntry();

This is continuous revision #273190:
https://fisheye6.atlassian.com/browse/ant/core/trunk/src/main/org/apache/tools/tar/TarEntry.java#r273190

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 50469] Enable create symbolic links int tar

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50469

Stefan Bodewig <bo...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WONTFIX

--- Comment #1 from Stefan Bodewig <bo...@apache.org> 2012-04-22 16:34:33 UTC ---
You shouldn't be using Ant's tar classes but rather Commons Compress
http://commons.apache.org/compress/ - which is what underlies the compress
antlib rather than Ant's own tar package.

TarArchiveEntry in Commons Compress tar package supports the setLinkName

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.