com.taggercat.util
Class FileUtils

java.lang.Object
  extended by com.taggercat.util.FileUtils

public class FileUtils
extends java.lang.Object

General file utilities.

 

Constructor Summary
FileUtils()
           
 
Method Summary
static java.lang.String[] findDuplicateJars(java.io.File libFolder)
          Find potentially duplicated jars where the difference is only in the version number.
static java.util.Set<java.io.File> getFileListing(java.io.File startingDir, java.lang.String contains)
          Get a recursive directory listing of files that contain the contains string in the filename.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileUtils

public FileUtils()
Method Detail

getFileListing

public static java.util.Set<java.io.File> getFileListing(java.io.File startingDir,
                                                         java.lang.String contains)
Get a recursive directory listing of files that contain the contains string in the filename.

Parameters:
startingDir - the starting directory
contains - the string to match in the file name ( this is not a regex )
Returns:
the set of matching files.

findDuplicateJars

public static java.lang.String[] findDuplicateJars(java.io.File libFolder)
Find potentially duplicated jars where the difference is only in the version number.

Parameters:
libFolder -
Returns:
String[] of first two duplicates if any