From 43306707780fee482902ce63f493a8e514c58dc2 Mon Sep 17 00:00:00 2001 From: Matthew Jason Benson Date: Mon, 23 May 2005 21:35:45 +0000 Subject: [PATCH] Document the resourcecount task. git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@278344 13f79535-47bb-0310-9956-ffa450edef68 --- docs/manual/CoreTasks/resourcecount.html | 68 ++++++++++++++++++++++++ docs/manual/coretasklist.html | 1 + 2 files changed, 69 insertions(+) create mode 100755 docs/manual/CoreTasks/resourcecount.html diff --git a/docs/manual/CoreTasks/resourcecount.html b/docs/manual/CoreTasks/resourcecount.html new file mode 100755 index 000000000..7a0e940e7 --- /dev/null +++ b/docs/manual/CoreTasks/resourcecount.html @@ -0,0 +1,68 @@ + + + + + +ResourceCount Task + + + + +

ResourceCount

+

Description

+

Display or set a property containing the size of a nested + Resource Collection. + Can also be used as a condition. Since Ant 1.7

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + +
AttributeDescriptionRequired
propertyThe property to set. If omitted the results are written + to the log. Ignored when processing as a condition.No
refidA reference + to a Resource Collection. + Yes, unless a nested Resource Collection is supplied +
countComparison count for processing as a condition.Yes, in condition mode
whenComparison type: "equal", "eq", "greater", "gt", "less", + "lt", "ge" (greater or equal), "ne" (not equal), "le" (less or equal) + for use when operating as a condition.No; default is "equal"
+

Parameters specified as nested elements

+

Resource Collection

+

A single + Resource Collection +should be specified via a nested element or the refid attribute. +

+

Examples

+
<resourcecount property="count.foo">
+  <filelist dir="." files="foo,bar" />
+</resourcecount>
+
+

Stores the number of resources in the specified filelist (two) +in the property named count.foo.

+
+

Copyright © 2005 The Apache Software Foundation. + All rights Reserved.

+ + + diff --git a/docs/manual/coretasklist.html b/docs/manual/coretasklist.html index f5dc9cf65..0893a1796 100644 --- a/docs/manual/coretasklist.html +++ b/docs/manual/coretasklist.html @@ -78,6 +78,7 @@ Record
Rename
Replace
+ResourceCount
Rmic
Sequential
SignJar