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 DirectoryScannerTest.java
Date Tue, 29 Jul 2003 19:44:38 GMT
antoine     2003/07/29 12:44:38

  Modified:    src/testcases/org/apache/tools/ant DirectoryScannerTest.java
  Log:
  new testcase
  
  Revision  Changes    Path
  1.24      +13 -1     ant/src/testcases/org/apache/tools/ant/DirectoryScannerTest.java
  
  Index: DirectoryScannerTest.java
  ===================================================================
  RCS file: /home/cvs/ant/src/testcases/org/apache/tools/ant/DirectoryScannerTest.java,v
  retrieving revision 1.23
  retrieving revision 1.24
  diff -u -r1.23 -r1.24
  --- DirectoryScannerTest.java	29 Jul 2003 10:38:35 -0000	1.23
  +++ DirectoryScannerTest.java	29 Jul 2003 19:44:38 -0000	1.24
  @@ -346,7 +346,19 @@
               }
           }
       }
  -
  +    public void testExcludeOneFile() {
  +        DirectoryScanner ds = new DirectoryScanner();
  +        ds.setBasedir(new File(getProject().getBaseDir(), "tmp"));
  +        ds.setIncludes(new String[] {
  +            "**/*.xml"
  +        });
  +        ds.setExcludes(new String[] {
  +            "alpha/beta/b*xml"
  +        });
  +        ds.scan();
  +        compareFiles(ds, new String[] {"alpha/beta/gamma/gamma.xml"},
  +                     new String[] {});
  +    }
       public void testExcludeHasPrecedence() {
           DirectoryScanner ds = new DirectoryScanner();
           ds.setBasedir(new File(getProject().getBaseDir(), "tmp"));
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message