public class FileCompare
extends java.lang.Object
Constructor and Description |
---|
FileCompare() |
Modifier and Type | Method and Description |
---|---|
static boolean |
compareFiles(java.io.File f1,
java.io.File f2)
Compares two files to see if they are equal
|
void |
execute()
Main method of task compare
|
void |
setFilenames(java.lang.String filenames)
Sets the comma-separated list of files to process.
|
void |
setReferenceDirectory(java.lang.String referenceDirectory)
Sets directory for reference files.
|
void |
setTestDirectory(java.lang.String testDirectory)
Sets directory for test files.
|
public void setTestDirectory(java.lang.String testDirectory)
testDirectory
- the test directorypublic void setReferenceDirectory(java.lang.String referenceDirectory)
referenceDirectory
- the reference directorypublic void setFilenames(java.lang.String filenames)
filenames
- list of files, comma-separatedpublic static boolean compareFiles(java.io.File f1, java.io.File f2) throws java.io.IOException
f1
- first file to comparef2
- second file to comparejava.io.IOException
- if not caughtpublic void execute() throws org.apache.tools.ant.BuildException
org.apache.tools.ant.BuildException
- If the execution fails.Copyright 1999-2012 The Apache Software Foundation. All Rights Reserved.