Browse Source

record tar symlink change of #142

master
Stefan Bodewig 3 years ago
parent
commit
16be5c00c0
3 changed files with 7 additions and 2 deletions
  1. +3
    -0
      WHATSNEW
  2. +2
    -2
      src/main/org/apache/tools/ant/types/resources/TarResource.java
  3. +2
    -0
      src/main/org/apache/tools/tar/TarEntry.java

+ 3
- 0
WHATSNEW View File

@@ -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
=======================================



+ 2
- 2
src/main/org/apache/tools/ant/types/resources/TarResource.java View File

@@ -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;


+ 2
- 0
src/main/org/apache/tools/tar/TarEntry.java View File

@@ -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;


Loading…
Cancel
Save