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 0da87da43c99f18bcbf6e3f675aad8c3ca276e09
Author: Stefan Bodewig <[email protected]>
AuthorDate: Sat Feb 7 22:03:55 2026 +0100

    make a few javadocs mentions windows junctions
---
 .../org/apache/tools/ant/DirectoryScanner.java     | 24 +++++++++++-----------
 .../apache/tools/ant/taskdefs/MatchingTask.java    |  4 ++--
 .../apache/tools/ant/types/AbstractFileSet.java    | 12 +++++------
 .../apache/tools/ant/types/resources/Files.java    |  2 +-
 .../tools/ant/types/selectors/OwnedBySelector.java |  2 +-
 .../ant/types/selectors/PosixGroupSelector.java    |  2 +-
 .../types/selectors/PosixPermissionsSelector.java  |  2 +-
 7 files changed, 24 insertions(+), 24 deletions(-)

diff --git a/src/main/org/apache/tools/ant/DirectoryScanner.java 
b/src/main/org/apache/tools/ant/DirectoryScanner.java
index 0b8454102..4c76af996 100644
--- a/src/main/org/apache/tools/ant/DirectoryScanner.java
+++ b/src/main/org/apache/tools/ant/DirectoryScanner.java
@@ -313,7 +313,7 @@ public class DirectoryScanner
     protected boolean errorOnMissingDir = true;
 
     /**
-     * Whether or not symbolic links should be followed.
+     * Whether or not symbolic links or Windows junctions should be followed.
      *
      * @since Ant 1.5
      */
@@ -427,7 +427,7 @@ public class DirectoryScanner
     private IllegalStateException illegal = null;
 
     /**
-     * The maximum number of times a symbolic link may be followed
+     * The maximum number of times a symbolic link or Windows junction may be 
followed
      * during a scan.
      *
      * @since Ant 1.8.0
@@ -436,7 +436,7 @@ public class DirectoryScanner
 
 
     /**
-     * Absolute paths of all symlinks that haven't been followed but
+     * Absolute paths of all symlinks or Windows junctions that haven't been 
followed but
      * would have been if followsymlinks had been true or
      * maxLevelsOfSymlinks had been higher.
      *
@@ -692,9 +692,9 @@ public class DirectoryScanner
     }
 
     /**
-     * Get whether or not a DirectoryScanner follows symbolic links.
+     * Get whether or not a DirectoryScanner follows symbolic links or Windows 
junctions.
      *
-     * @return flag indicating whether symbolic links should be followed.
+     * @return flag indicating whether symbolic links or Windows junctions 
should be followed.
      *
      * @since Ant 1.6
      */
@@ -703,16 +703,16 @@ public class DirectoryScanner
     }
 
     /**
-     * Set whether or not symbolic links should be followed.
+     * Set whether or not symbolic links or Windows junctions should be 
followed.
      *
-     * @param followSymlinks whether or not symbolic links should be followed.
+     * @param followSymlinks whether or not symbolic links or Windows 
junctions should be followed.
      */
     public synchronized void setFollowSymlinks(final boolean followSymlinks) {
         this.followSymlinks = followSymlinks;
     }
 
     /**
-     * The maximum number of times a symbolic link may be followed
+     * The maximum number of times a symbolic link or Windows junctions may be 
followed
      * during a scan.
      *
      * @param max int
@@ -1690,7 +1690,7 @@ public class DirectoryScanner
     }
 
     /**
-     * Absolute paths of all symbolic links that haven't been followed
+     * Absolute paths of all symbolic links or Windows junctions that haven't 
been followed
      * but would have been followed had followsymlinks been true or
      * maxLevelsOfSymlinks been bigger.
      *
@@ -1805,12 +1805,12 @@ public class DirectoryScanner
 
     /**
      * Would following the given directory cause a loop of symbolic
-     * links deeper than allowed?
+     * links or Windows junctions deeper than allowed?
      *
      * <p>Can only happen if the given directory has been seen at
      * least more often than allowed during the current scan and it is
-     * a symbolic link and enough other occurrences of the same name
-     * higher up are symbolic links that point to the same place.</p>
+     * a symbolic link or Windows junction and enough other occurrences of the 
same name
+     * higher up are symbolic links or Windows junctions that point to the 
same place.</p>
      *
      * @since Ant 1.8.0
      */
diff --git a/src/main/org/apache/tools/ant/taskdefs/MatchingTask.java 
b/src/main/org/apache/tools/ant/taskdefs/MatchingTask.java
index 063b720d5..354c21913 100644
--- a/src/main/org/apache/tools/ant/taskdefs/MatchingTask.java
+++ b/src/main/org/apache/tools/ant/taskdefs/MatchingTask.java
@@ -225,9 +225,9 @@ public abstract class MatchingTask extends Task implements 
SelectorContainer {
     }
 
     /**
-     * Sets whether or not symbolic links should be followed.
+     * Sets whether or not symbolic links or Windows junctions should be 
followed.
      *
-     * @param followSymlinks whether or not symbolic links should be followed
+     * @param followSymlinks whether or not symbolic links or Windows 
junctions should be followed
      */
     public void setFollowSymlinks(boolean followSymlinks) {
         fileset.setFollowSymlinks(followSymlinks);
diff --git a/src/main/org/apache/tools/ant/types/AbstractFileSet.java 
b/src/main/org/apache/tools/ant/types/AbstractFileSet.java
index fa2608b73..2ce8fde5c 100644
--- a/src/main/org/apache/tools/ant/types/AbstractFileSet.java
+++ b/src/main/org/apache/tools/ant/types/AbstractFileSet.java
@@ -411,9 +411,9 @@ public abstract class AbstractFileSet extends DataType
     }
 
     /**
-     * Sets whether or not symbolic links should be followed.
+     * Sets whether or not symbolic links or Windows junctions should be 
followed.
      *
-     * @param followSymlinks whether or not symbolic links should be followed.
+     * @param followSymlinks whether or not symbolic links or Windows 
junctions should be followed.
      */
     public synchronized void setFollowSymlinks(boolean followSymlinks) {
         if (isReference()) {
@@ -424,9 +424,9 @@ public abstract class AbstractFileSet extends DataType
     }
 
     /**
-     * Find out if the fileset wants to follow symbolic links.
+     * Find out if the fileset wants to follow symbolic links or Windows 
junctions.
      *
-     * @return <code>boolean</code> indicating whether symbolic links
+     * @return <code>boolean</code> indicating whether symbolic links or 
Windows junctions
      *         should be followed.
      *
      * @since Ant 1.6
@@ -440,7 +440,7 @@ public abstract class AbstractFileSet extends DataType
     }
 
     /**
-     * The maximum number of times a symbolic link may be followed
+     * The maximum number of times a symbolic link or Windows junctions may be 
followed
      * during a scan.
      *
      * @param max int
@@ -451,7 +451,7 @@ public abstract class AbstractFileSet extends DataType
     }
 
     /**
-     * The maximum number of times a symbolic link may be followed
+     * The maximum number of times a symbolic link or Windows junctions may be 
followed
      * during a scan.
      *
      * @return int
diff --git a/src/main/org/apache/tools/ant/types/resources/Files.java 
b/src/main/org/apache/tools/ant/types/resources/Files.java
index b7493f98a..555ee6177 100644
--- a/src/main/org/apache/tools/ant/types/resources/Files.java
+++ b/src/main/org/apache/tools/ant/types/resources/Files.java
@@ -284,7 +284,7 @@ public class Files extends AbstractSelectorContainer
     }
 
     /**
-     * Set whether or not symbolic links should be followed.
+     * Set whether or not symbolic links or Windows junctions should be 
followed.
      *
      * @param followSymlinks whether or not symbolic links should be followed.
      */
diff --git a/src/main/org/apache/tools/ant/types/selectors/OwnedBySelector.java 
b/src/main/org/apache/tools/ant/types/selectors/OwnedBySelector.java
index 4f71277b0..796d96e5a 100644
--- a/src/main/org/apache/tools/ant/types/selectors/OwnedBySelector.java
+++ b/src/main/org/apache/tools/ant/types/selectors/OwnedBySelector.java
@@ -53,7 +53,7 @@ public class OwnedBySelector implements FileSelector {
 
     /**
      * Sets the "follow symbolic links" option.
-     * @param followSymlinks whether or not symbolic links should be followed.
+     * @param followSymlinks whether or not symbolic links or Windows 
junctions should be followed.
      */
     public void setFollowSymlinks(boolean followSymlinks) {
         this.followSymlinks = followSymlinks;
diff --git 
a/src/main/org/apache/tools/ant/types/selectors/PosixGroupSelector.java 
b/src/main/org/apache/tools/ant/types/selectors/PosixGroupSelector.java
index 83107c8a5..cc130a518 100644
--- a/src/main/org/apache/tools/ant/types/selectors/PosixGroupSelector.java
+++ b/src/main/org/apache/tools/ant/types/selectors/PosixGroupSelector.java
@@ -53,7 +53,7 @@ public class PosixGroupSelector implements FileSelector {
 
     /**
      * Sets the "follow symbolic links" option.
-     * @param followSymlinks whether or not symbolic links should be followed.
+     * @param followSymlinks whether or not symbolic links or Windows 
junctions should be followed.
      */
     public void setFollowSymlinks(boolean followSymlinks) {
         this.followSymlinks = followSymlinks;
diff --git 
a/src/main/org/apache/tools/ant/types/selectors/PosixPermissionsSelector.java 
b/src/main/org/apache/tools/ant/types/selectors/PosixPermissionsSelector.java
index 69f9c03e1..9bf6c33be 100644
--- 
a/src/main/org/apache/tools/ant/types/selectors/PosixPermissionsSelector.java
+++ 
b/src/main/org/apache/tools/ant/types/selectors/PosixPermissionsSelector.java
@@ -63,7 +63,7 @@ public class PosixPermissionsSelector implements FileSelector 
{
 
     /**
      * Sets the "follow symbolic links" flag.
-     * @param followSymlinks whether or not symbolic links should be followed.
+     * @param followSymlinks whether or not symbolic links or Windows 
junctions should be followed.
      */
     public void setFollowSymlinks(boolean followSymlinks) {
         this.followSymlinks = followSymlinks;

Reply via email to