From 29d13b436a34bb95d3d48b67b75fb9d0854280c5 Mon Sep 17 00:00:00 2001 From: Stefan Bodewig Date: Thu, 28 Jun 2018 17:16:18 +0200 Subject: [PATCH] clarify handling of symbolic links --- src/main/org/apache/tools/ant/util/FileUtils.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/main/org/apache/tools/ant/util/FileUtils.java b/src/main/org/apache/tools/ant/util/FileUtils.java index c36eae7ec..9b5ff4f9e 100644 --- a/src/main/org/apache/tools/ant/util/FileUtils.java +++ b/src/main/org/apache/tools/ant/util/FileUtils.java @@ -1147,6 +1147,9 @@ public class FileUtils { /** * Removes a leading path from a second path. * + *

This method uses {@link #normalize} under the covers and + * does not resolve symbolic links.

+ * * @param leading The leading path, must not be null, must be absolute. * @param path The path to remove from, must not be null, must be absolute. * @@ -1171,8 +1174,12 @@ public class FileUtils { /** * Learn whether one path "leads" another. + * + *

This method uses {@link #normalize} under the covers and + * does not resolve symbolic links.

+ * * @param leading The leading path, must not be null, must be absolute. - * @param path The path to remove from, must not be null, must be absolute. + * @param path The path to check, must not be null, must be absolute. * @return true if path starts with leading; false otherwise. * @since Ant 1.7 */