Browse Source

Added a new testcase which fails on UNIX.

I need to change the inner class AntFTPFile so that it scans subdir
on case sensitive systems when case sensitive is set to false
and a path element is not found with its original spelling.


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275129 13f79535-47bb-0310-9956-ffa450edef68
master
Antoine Levy-Lambert 22 years ago
parent
commit
0745fe6426
1 changed files with 13 additions and 0 deletions
  1. +13
    -0
      src/testcases/org/apache/tools/ant/taskdefs/optional/net/FTPTest.java

+ 13
- 0
src/testcases/org/apache/tools/ant/taskdefs/optional/net/FTPTest.java View File

@@ -206,6 +206,19 @@ public class FTPTest extends BuildFileTest{
}
}
}
public void test2bisButCaseInsensitive() {
if (loginSuceeded) {
if (changeRemoteDir(remoteTmpDir)) {
FTP.FTPDirectoryScanner ds = myFTPTask.newScanner(ftp);
ds.setBasedir(new File(getProject().getBaseDir(), "tmp"));
ds.setIncludes(new String[] {"alpha/BETA/gamma/"});
ds.setCaseSensitive(false);
ds.scan();
compareFiles(ds, new String[] {"alpha/beta/gamma/gamma.xml"},
new String[] {"alpha/beta/gamma"});
}
}
}
public void testGetWithSelector() {
expectLogContaining("ftp-get-with-selector",
"selectors are not supported in remote filesets");


Loading…
Cancel
Save