From 160e750485a8862afb67cf6ead7c73a894a53a14 Mon Sep 17 00:00:00 2001
From: Steve Loughran
Date: Mon, 14 Jan 2002 00:06:07 +0000
Subject: [PATCH] condition for files matching
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270748 13f79535-47bb-0310-9956-ffa450edef68
---
docs/manual/CoreTasks/conditions.html | 27 ++-
.../ant/taskdefs/condition/ConditionBase.java | 7 +
.../ant/taskdefs/condition/FilesMatch.java | 176 ++++++++++++++++++
3 files changed, 209 insertions(+), 1 deletion(-)
create mode 100644 src/main/org/apache/tools/ant/taskdefs/condition/FilesMatch.java
diff --git a/docs/manual/CoreTasks/conditions.html b/docs/manual/CoreTasks/conditions.html
index 8b7f240f7..86f02d9e9 100644
--- a/docs/manual/CoreTasks/conditions.html
+++ b/docs/manual/CoreTasks/conditions.html
@@ -185,9 +185,34 @@ TCP/IP listener at the specified host and port.
+filesmatch
+Test two files for matching. Both files must exist first.
+This test does a byte for byte comparision, so test time scales with
+byte size. NB: if the files are different sizes or the filenames match
+the slower test is shortcutted.
+
+
+
+
+ Attribute |
+ Description |
+ Required |
+
+
+ file1 |
+ First file to test |
+ Yes. |
+
+
+ file2 |
+ Second file to test |
+ Yes. |
+
+
+
Copyright © 2001-2002 Apache Software
Foundation. All rights Reserved.