comparison method of the interface
//validate
if (file1 == null || file2 == null) {
throw new BuildException("both file1 and file2 are required in "
+ "filesmatch");
}
//#now match the files
boolean matches = false;
try {
matches = FILE_UTILS.contentEquals(file1, file2, textfile);
} catch (IOException ioe) {
throw new BuildException("when comparing files: "
+ ioe.getMessage(), ioe);
}
return matches;