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: [email protected]
ReportedBy: [email protected]
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.