org.apache.tools.ant.taskdefs.condition

Class FilesMatch

public class FilesMatch extends Object implements Condition

Compares two files for bitwise equality based on size and content. Timestamps are not at all looked at.

Since: Ant 1.5

Method Summary
booleaneval()
comparison method of the interface
voidsetFile1(File file1)
Sets the File1 attribute
voidsetFile2(File file2)
Sets the File2 attribute

Method Detail

eval

public boolean eval()
comparison method of the interface

Returns: true if the files are equal

Throws: BuildException if it all went pear-shaped

setFile1

public void setFile1(File file1)
Sets the File1 attribute

Parameters: file1 The new File1 value

setFile2

public void setFile2(File file2)
Sets the File2 attribute

Parameters: file2 The new File2 value

Copyright