antoine     2003/08/22 03:48:08

  Modified:    src/testcases/org/apache/tools/ant/taskdefs/optional/net
                        FTPTest.java
  Log:
  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.
  
  Revision  Changes    Path
  1.8       +13 -0     
ant/src/testcases/org/apache/tools/ant/taskdefs/optional/net/FTPTest.java
  
  Index: FTPTest.java
  ===================================================================
  RCS file: 
/home/cvs/ant/src/testcases/org/apache/tools/ant/taskdefs/optional/net/FTPTest.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- FTPTest.java      21 Aug 2003 16:56:12 -0000      1.7
  +++ FTPTest.java      22 Aug 2003 10:48:08 -0000      1.8
  @@ -206,6 +206,19 @@
               }
           }
       }
  +    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");
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to