code: private boolean isMorePowerfulThanExcludes(String name, String includepattern) {
          String soughtexclude = name + File.separator + "**";
          for (int counter = 0; counter < excludes.length; counter++) {
              if (excludes[counter].equals(soughtexclude))  {
                  return false;
              }
          }
          return true;
      }
docs: Find out whether one particular include pattern is more powerful
  than all the excludes.
  Note:  the power comparison is based on the length of the include pattern
  and of the exclude patterns without the wildcards.
  Ideally the comparison should be done based on the depth
  of the match; that is to say how many file separators have been matched
  before the first ** or the end of the pattern.
  
  IMPORTANT : this function should return false "with care".
  
  @param name the relative path to test.
  @param includepattern one include pattern.
  @return true if there is no exclude pattern more powerful than this include pattern.
  @since Ant 1.6