You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bo...@apache.org on 2021/09/25 11:18:09 UTC

[ant] 02/03: record tar symlink change of #142

This is an automated email from the ASF dual-hosted git repository.

bodewig pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ant.git

commit 16be5c00c0cba00589b8a272999cb6fca720ce32
Author: Stefan Bodewig <bo...@apache.org>
AuthorDate: Sat Sep 25 13:12:43 2021 +0200

    record tar symlink change of #142
---
 WHATSNEW                                                       | 3 +++
 src/main/org/apache/tools/ant/types/resources/TarResource.java | 4 ++--
 src/main/org/apache/tools/tar/TarEntry.java                    | 2 ++
 3 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/WHATSNEW b/WHATSNEW
index 4c82517..5898c65 100644
--- a/WHATSNEW
+++ b/WHATSNEW
@@ -30,6 +30,9 @@ Other changes:
  * javadoc task will now look for warning messages in the STDERR stream too
    when "failonwarning" is set to true to account for changes in JDK 17+
 
+ * The tar task now preserves symlinks of nested tarfilesets.
+   Github Pull Request #142
+
 Changes from Ant 1.10.10 TO Ant 1.10.11
 =======================================
 
diff --git a/src/main/org/apache/tools/ant/types/resources/TarResource.java b/src/main/org/apache/tools/ant/types/resources/TarResource.java
index 96db041..2c44401 100644
--- a/src/main/org/apache/tools/ant/types/resources/TarResource.java
+++ b/src/main/org/apache/tools/ant/types/resources/TarResource.java
@@ -177,7 +177,7 @@ public class TarResource extends ArchiveResource {
 
     /**
      * @return the link "name" (=path) of this entry; an empty string if this is no link
-     * @since 1.10.10
+     * @since 1.10.12
      */
     public String getLinkName() {
         return linkName;
@@ -185,7 +185,7 @@ public class TarResource extends ArchiveResource {
 
     /**
      * @return the link "flag" (=type) of this entry
-     * @since 1.10.10
+     * @since 1.10.12
      */
     public byte getLinkFlag() {
         return linkFlag;
diff --git a/src/main/org/apache/tools/tar/TarEntry.java b/src/main/org/apache/tools/tar/TarEntry.java
index ab02120..a47b256 100644
--- a/src/main/org/apache/tools/tar/TarEntry.java
+++ b/src/main/org/apache/tools/tar/TarEntry.java
@@ -399,6 +399,7 @@ public class TarEntry implements TarConstants {
      * Get this entry's link flag.
      *
      * @return This entry's link flag.
+     * @since 1.10.12
      */
     public byte getLinkFlag() {
         return linkFlag;
@@ -408,6 +409,7 @@ public class TarEntry implements TarConstants {
      * Set this entry's link flag.
      *
      * @param link the link flag to use.
+     * @since 1.10.12
      */
     public void setLinkFlag(byte linkFlag) {
         this.linkFlag = linkFlag;