From e208a40a758d9a872bc30e484173236f1944c60d Mon Sep 17 00:00:00 2001 From: Matthew Jason Benson Date: Wed, 25 May 2005 21:50:15 +0000 Subject: [PATCH] Add resourcecount + a little cleanup git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@278359 13f79535-47bb-0310-9956-ffa450edef68 --- docs/manual/CoreTasks/conditions.html | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/docs/manual/CoreTasks/conditions.html b/docs/manual/CoreTasks/conditions.html index e82d5e3e8..ecd5c1307 100644 --- a/docs/manual/CoreTasks/conditions.html +++ b/docs/manual/CoreTasks/conditions.html @@ -630,20 +630,20 @@ Probe for the maven repository being reachable using the hostname, ten second ti Since Ant 1.6.3

-Verify a string is of a certain length:
-<length string=" foo " trim="true" length="3"/>
+<length string=" foo " trim="true" length="3" />
 
+

Verify a string is of a certain length.

-Verify a file is not empty:
-<length file="foo" when="greater" length="0"/>
+<length file="foo" when="greater" length="0" />
 
+

Verify that file foo is not empty.

isfailure

-

Test the return code of an executable (see -<exec>) for failure. Since Ant 1.7

+

Test the return code of an executable (see the +Exec task) for failure. Since Ant 1.7

@@ -658,6 +658,18 @@ Verify a file is not empty:
+

resourcecount

+

This condition is a facet of the + ResourceCount task. + It is used to test the size of a + resource collection. + Since Ant 1.7 +

+ +
+<resourcecount refid="myresourcecollection" when="greater" length="0" />
+
+

Verify that a resource collection is not empty.


Copyright © 2001-2005 Apache Software Foundation. All rights Reserved.