Class FilesMatch
- java.lang.Object
-
- org.apache.tools.ant.taskdefs.condition.FilesMatch
-
-
Constructor Summary
Constructors Constructor Description FilesMatch()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
eval()
comparison method of the interfacevoid
setFile1(java.io.File file1)
Sets the File1 attributevoid
setFile2(java.io.File file2)
Sets the File2 attributevoid
setTextfile(boolean textfile)
Set whether to ignore line endings when comparing files.
-
-
-
Method Detail
-
setFile1
public void setFile1(java.io.File file1)
Sets the File1 attribute- Parameters:
file1
- The new File1 value
-
setFile2
public void setFile2(java.io.File file2)
Sets the File2 attribute- Parameters:
file2
- The new File2 value
-
setTextfile
public void setTextfile(boolean textfile)
Set whether to ignore line endings when comparing files.- Parameters:
textfile
- whether to ignore line endings.
-
eval
public boolean eval() throws BuildException
comparison method of the interface- Specified by:
eval
in interfaceCondition
- Returns:
- true if the files are equal
- Throws:
BuildException
- if it all went pear-shaped
-
-