|
fop 2.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.fop.tools.anttasks.FileCompare
public class FileCompare
This class is an extension of Ant, a script utility from http://ant.apache.org. It provides methods to compare two files.
Constructor Summary | |
---|---|
FileCompare()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FileCompare()
Method Detail |
---|
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 compare
java.io.IOException
- if not caughtpublic void execute() throws org.apache.tools.ant.BuildException
org.apache.tools.ant.BuildException
- If the execution fails.
|
fop 2.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |