Author: mbenson
Date: Tue Jul 1 11:24:00 2008
New Revision: 673162
URL: http://svn.apache.org/viewvc?rev=673162&view=rev
Log:
add an example of a unix function implemented with \<tokens\>
Modified:
ant/core/trunk/docs/manual/CoreTypes/resources.html
Modified: ant/core/trunk/docs/manual/CoreTypes/resources.html
URL:
http://svn.apache.org/viewvc/ant/core/trunk/docs/manual/CoreTypes/resources.html?rev=673162&r1=673161&r2=673162&view=diff
==============================================================================
--- ant/core/trunk/docs/manual/CoreTypes/resources.html (original)
+++ ant/core/trunk/docs/manual/CoreTypes/resources.html Tue Jul 1 11:24:00 2008
@@ -887,7 +887,7 @@
<h4><a name="tokens">tokens</a></h4>
<p>Includes the <a href="#string">string</a> tokens gathered from a nested
resource collection. Uses the same tokenizers supported by the
-<a href="filterchain.html#tokenfilter">TokenFilter</a>. Hint: imaginative
+<a href="filterchain.html#tokenfilter">TokenFilter</a>. Imaginative
use of this resource collection can implement equivalents for such Unix
functions as <code>sort</code>, <code>grep -c</code>, <code>wc</code> and
<code>wc -l</code>.</p>
@@ -917,6 +917,19 @@
<a href="filterchain.html#linetokenizer">LineTokenizer</a> will be
used.
</li>
</ul>
+ <h4>Examples</h4>
+ <pre><concat>
+ <union>
+ <sort>
+ <tokens>
+ <resources refid="input" />
+ <linetokenizer includedelims="true" />
+ </tokens>
+ </sort>
+ </union>
+</concat>
+ </pre>
+ <p>Implements Unix <i>sort -u</i> against resource collection
<i>input</i>.</p>
</blockquote>
<h4><a name="setlogic">Set operations</a></h4>