ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mben...@apache.org
Subject svn commit: r673162 - /ant/core/trunk/docs/manual/CoreTypes/resources.html
Date Tue, 01 Jul 2008 18:24:01 GMT
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>&lt;concat&gt;
+  &lt;union&gt;
+    &lt;sort&gt;
+      &lt;tokens&gt;
+        &lt;resources refid="input" /&gt;
+        &lt;linetokenizer includedelims="true" /&gt;
+      &lt;/tokens&gt;
+    &lt;/sort&gt;
+  &lt;/union&gt;
+&lt;/concat&gt;
+  </pre>
+  <p>Implements Unix <i>sort -u</i> against resource collection <i>input</i>.</p>
 </blockquote>
 
 <h4><a name="setlogic">Set operations</a></h4>



Mime
View raw message