Return-Path: Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 32956 invoked by uid 500); 22 Aug 2003 10:55:38 -0000 Mailing-List: contact dev-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list dev@ant.apache.org Received: (qmail 32942 invoked by uid 500); 22 Aug 2003 10:55:37 -0000 Received: (qmail 32937 invoked from network); 22 Aug 2003 10:55:37 -0000 Received: from minotaur.apache.org (209.237.227.194) by daedalus.apache.org with SMTP; 22 Aug 2003 10:55:37 -0000 Received: (qmail 20713 invoked by uid 1652); 22 Aug 2003 10:48:08 -0000 Date: 22 Aug 2003 10:48:08 -0000 Message-ID: <20030822104808.20712.qmail@minotaur.apache.org> From: antoine@apache.org To: ant-cvs@apache.org Subject: cvs commit: ant/src/testcases/org/apache/tools/ant/taskdefs/optional/net FTPTest.java X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N 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