Browse Source

files which are pointed to by symbolic links should be excluded if followsymlinks="false"

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275081 13f79535-47bb-0310-9956-ffa450edef68
master
Antoine Levy-Lambert 22 years ago
parent
commit
9c13b48a82
1 changed files with 4 additions and 3 deletions
  1. +4
    -3
      src/main/org/apache/tools/ant/taskdefs/optional/net/FTP.java

+ 4
- 3
src/main/org/apache/tools/ant/taskdefs/optional/net/FTP.java View File

@@ -290,9 +290,10 @@ public class FTP
name + File.separator, fast);
}
} else {
if (isFunctioningAsFile(ftp, dir, file)) {
String name = vpath + file.getName();

String name = vpath + file.getName();
if (!isFollowSymlinks() && file.isSymbolicLink()) {
dirsExcluded.addElement(name);
} else if (isFunctioningAsFile(ftp, dir, file)) {
if (isIncluded(name)) {
if (!isExcluded(name)) {
filesIncluded.addElement(name);


Loading…
Cancel
Save