From 1258f6166a280fcfa83a6fb31f3877f4bcbfa646 Mon Sep 17 00:00:00 2001 From: Jan Materne Date: Wed, 14 Mar 2007 13:53:24 +0000 Subject: [PATCH] Two examples using nested resource collections. git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@518139 13f79535-47bb-0310-9956-ffa450edef68 --- docs/manual/CoreTasks/length.html | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/docs/manual/CoreTasks/length.html b/docs/manual/CoreTasks/length.html index d11b88f74..cfd32ac13 100755 --- a/docs/manual/CoreTasks/length.html +++ b/docs/manual/CoreTasks/length.html @@ -80,20 +80,41 @@ No; default is "equal" +

Parameters specified as nested elements

+

Resource Collections

You can include resources via nested Resource Collections.

+

Examples

+
<length string="foo" property="length.foo" />
 

Stores the length of the string "foo" in the property named length.foo.

+
<length file="bar" property="length.bar" />
 

Stores the length of file "bar" in the property named length.bar.

+
+<length property="length" mode="each">
+    <fileset dir="." includes="foo,bar"/>
+</length>
+
+

Writes the file paths of foo and bar and their length into +the property length.

+ +
+<length property="length" mode="all">
+    <fileset dir="." includes="foo,bar"/>
+</length>
+
+

Adds the length of foo and bar and stores the result in property length.

+ +