Return-Path: Delivered-To: apmail-ant-dev-archive@www.apache.org Received: (qmail 51691 invoked from network); 14 Mar 2007 13:53:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Mar 2007 13:53:48 -0000 Received: (qmail 77146 invoked by uid 500); 14 Mar 2007 13:53:54 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 77101 invoked by uid 500); 14 Mar 2007 13:53:54 -0000 Mailing-List: contact dev-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list dev@ant.apache.org Received: (qmail 77085 invoked by uid 500); 14 Mar 2007 13:53:54 -0000 Received: (qmail 77077 invoked by uid 99); 14 Mar 2007 13:53:54 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Mar 2007 06:53:54 -0700 X-ASF-Spam-Status: No, hits=-99.5 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Mar 2007 06:53:45 -0700 Received: by eris.apache.org (Postfix, from userid 65534) id EC2831A9838; Wed, 14 Mar 2007 06:53:24 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r518139 - /ant/core/trunk/docs/manual/CoreTasks/length.html Date: Wed, 14 Mar 2007 13:53:24 -0000 To: ant-cvs@apache.org From: jhm@apache.org X-Mailer: svnmailer-1.1.0 Message-Id: <20070314135324.EC2831A9838@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: jhm Date: Wed Mar 14 06:53:24 2007 New Revision: 518139 URL: http://svn.apache.org/viewvc?view=rev&rev=518139 Log: Two examples using nested resource collections. Modified: ant/core/trunk/docs/manual/CoreTasks/length.html Modified: ant/core/trunk/docs/manual/CoreTasks/length.html URL: http://svn.apache.org/viewvc/ant/core/trunk/docs/manual/CoreTasks/length.html?view=diff&rev=518139&r1=518138&r2=518139 ============================================================================== --- ant/core/trunk/docs/manual/CoreTasks/length.html (original) +++ ant/core/trunk/docs/manual/CoreTasks/length.html Wed Mar 14 06:53:24 2007 @@ -80,19 +80,40 @@ 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.

+ --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org For additional commands, e-mail: dev-help@ant.apache.org