ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anto...@apache.org
Subject cvs commit: ant/src/testcases/org/apache/tools/ant/taskdefs/optional/net FTPTest.java
Date Fri, 22 Aug 2003 10:48:08 GMT
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: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message