You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by jh...@apache.org on 2007/03/14 14:53:24 UTC
svn commit: r518139 - /ant/core/trunk/docs/manual/CoreTasks/length.html
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 @@
<td valign="top" align="center">No; default is "equal"</td>
</tr>
</table>
+
<h3>Parameters specified as nested elements</h3>
+
<h4>Resource Collections</h4>
<p>You can include resources via nested
<a href="../CoreTypes/resources.html#collection">Resource Collection</a>s.</p>
+
<h3>Examples</h3>
+
<pre><length string="foo" property="length.foo" />
</pre>
<p>Stores the length of the string "foo" in the property named
<i>length.foo</i>.</p>
+
<pre><length file="bar" property="length.bar" />
</pre>
<p>Stores the length of file "bar" in the property named
<i>length.bar</i>.</p>
+
+<pre>
+<length property="length" mode="each">
+ <fileset dir="." includes="foo,bar"/>
+</length>
+</pre>
+<p>Writes the file paths of <i>foo</i> and <i>bar</i> and their length into
+the property <i>length</i>.</p>
+
+<pre>
+<length property="length" mode="all">
+ <fileset dir="." includes="foo,bar"/>
+</length>
+</pre>
+<p>Adds the length of <i>foo</i> and <i>bar</i> and stores the result in property <i>length</i>.</p>
+
</body>
</html>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org