ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 50469] New: Enable create symbolic links int tar
Date Tue, 14 Dec 2010 10:53:26 GMT
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.

Mime
View raw message