org.apache.tools.ant.taskdefs.condition
Class FilesMatch
java.lang.Objectorg.apache.tools.ant.taskdefs.condition.FilesMatch
- Condition
public class FilesMatch
extends java.lang.Object
Compares two files for equality based on size and
content. Timestamps are not at all looked at.
boolean | eval()- comparison method of the interface
|
void | setFile1(File file1)- Sets the File1 attribute
|
void | setFile2(File file2)- Sets the File2 attribute
|
void | setTextfile(boolean textfile)- Set whether to ignore line endings when comparing files.
|
eval
public boolean eval()
throws BuildException comparison method of the interface
- eval in interface Condition
- true if the files are equal
setFile1
public void setFile1(File file1)
Sets the File1 attribute
file1 - The new File1 value
setFile2
public void setFile2(File file2)
Sets the File2 attribute
file2 - The new File2 value
setTextfile
public void setTextfile(boolean textfile)
Set whether to ignore line endings when comparing files.
textfile - whether to ignore line endings.