ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mben...@apache.org
Subject cvs commit: ant/src/main/org/apache/tools/ant DirectoryScanner.java
Date Mon, 07 Mar 2005 17:16:33 GMT
mbenson     2005/03/07 09:16:33

  Modified:    src/main/org/apache/tools/ant DirectoryScanner.java
  Log:
  static final variables:
      csScanOnly -> CS_SCAN_ONLY, csThenNonCs -> CS_THEN_NON_CS
  
  Revision  Changes    Path
  1.96      +3 -3      ant/src/main/org/apache/tools/ant/DirectoryScanner.java
  
  Index: DirectoryScanner.java
  ===================================================================
  RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/DirectoryScanner.java,v
  retrieving revision 1.95
  retrieving revision 1.96
  diff -u -r1.95 -r1.96
  --- DirectoryScanner.java	7 Mar 2005 17:13:05 -0000	1.95
  +++ DirectoryScanner.java	7 Mar 2005 17:16:33 -0000	1.96
  @@ -169,10 +169,10 @@
       private static final FileUtils FILE_UTILS = FileUtils.getFileUtils();
   
       /** iterations for case-sensitive scanning. */
  -    private static final boolean[] csScanOnly = new boolean[] {true};
  +    private static final boolean[] CS_SCAN_ONLY = new boolean[] {true};
   
       /** iterations for non-case-sensitive scanning. */
  -    private static final boolean[] csThenNonCs = new boolean[] {true, false};
  +    private static final boolean[] CS_THEN_NON_CS = new boolean[] {true, false};
   
       /**
        * Patterns which should be excluded by default.
  @@ -1528,7 +1528,7 @@
           }
           String current = (String) pathElements.remove(0);
   
  -        boolean[] matchCase = cs ? csScanOnly : csThenNonCs;
  +        boolean[] matchCase = cs ? CS_SCAN_ONLY : CS_THEN_NON_CS;
           for (int i = 0; i < matchCase.length; i++) {
               for (int j = 0; j < files.length; j++) {
                   if (matchCase[i] ? files[j].equals(current)
  
  
  

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


Mime
View raw message