| |
|
| java.lang.Object org.apache.tools.ant.taskdefs.condition.FilesMatch
FilesMatch | public class FilesMatch implements Condition(Code) | | Compares two files for equality based on size and
content. Timestamps are not at all looked at.
since: Ant 1.5 |
Method Summary | |
public boolean | eval() | public void | setFile1(File file1) | public void | setFile2(File file2) | public void | setTextfile(boolean textfile) Set whether to ignore line endings when comparing files. |
eval | public boolean eval() throws BuildException(Code) | | comparison method of the interface
true if the files are equal exception: BuildException - if it all went pear-shaped |
setFile1 | public void setFile1(File file1)(Code) | | Sets the File1 attribute
Parameters: file1 - The new File1 value |
setFile2 | public void setFile2(File file2)(Code) | | Sets the File2 attribute
Parameters: file2 - The new File2 value |
setTextfile | public void setTextfile(boolean textfile)(Code) | | Set whether to ignore line endings when comparing files.
Parameters: textfile - whether to ignore line endings. |
|
|
|