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