Class FilesMatch
java.lang.Object
org.apache.tools.ant.taskdefs.condition.FilesMatch
- All Implemented Interfaces:
- Condition
Compares two files for equality based on size and
 content. Timestamps are not at all looked at.
- Since:
- Ant 1.5
- 
Constructor SummaryConstructors
- 
Method Summary
- 
Constructor Details- 
FilesMatchpublic FilesMatch()
 
- 
- 
Method Details- 
setFile1Sets the File1 attribute- Parameters:
- file1- The new File1 value
 
- 
setFile2Sets the File2 attribute- Parameters:
- file2- The new File2 value
 
- 
setTextfilepublic void setTextfile(boolean textfile) Set whether to ignore line endings when comparing files.- Parameters:
- textfile- whether to ignore line endings.
 
- 
evalcomparison method of the interface- Specified by:
- evalin interface- Condition
- Returns:
- true if the files are equal
- Throws:
- BuildException- if it all went pear-shaped
 
 
-