jetbrains.buildServer.util
Class AntPatternFileFinder

java.lang.Object
  extended by jetbrains.buildServer.util.AntPatternFileFinder

public class AntPatternFileFinder
extends java.lang.Object

Finds files matching ant-like patterns under given directory

Since:
7.0

Constructor Summary
AntPatternFileFinder(java.lang.String[] includePatterns, java.lang.String[] excludePatterns, boolean caseSensitive)
           
 
Method Summary
 java.io.File[] findFiles(java.io.File baseDirectory)
          Finds files matching ant-like patterns under given directory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AntPatternFileFinder

public AntPatternFileFinder(java.lang.String[] includePatterns,
                            java.lang.String[] excludePatterns,
                            boolean caseSensitive)
Parameters:
includePatterns - Include files matching this ant-like pattern
excludePatterns - Excludes files matching this ant-like pattern
caseSensitive - Honor patterns case while matching files or not
Method Detail

findFiles

public java.io.File[] findFiles(@NotNull
                                java.io.File baseDirectory)
                         throws java.io.IOException
Finds files matching ant-like patterns under given directory.

Parameters:
baseDirectory - Directory to search files under
Returns:
Array of matched files
Throws:
java.io.IOException - I/O error occurred