Collects a list of DataSources using a comma separated list of input file
locations to process. If a file location is a directory, the directory
hierarchy will be traversed to look for files. If a file location is a
ZIP or Jar the archive will be scanned looking for files. If a file
location is a file, it will be used. For each located file, a
FilenameFilter is used to decide whether to return a DataSource.
fileLocations - A comma-separated list of file locations.
filenameFilter - The FilenameFilter to apply to files.
A list of DataSources, one for each file collected.
public static boolean findPatternInFile(File file,
Handy method to find a certain pattern into a file. While this method lives in the FileUtils, it was
designed with with unit test in mind (to check result redirected into a file)