From ba6d6347ce08147b65d4c9d0ea97737802d88136 Mon Sep 17 00:00:00 2001
From: Matthew Jason Benson
Date: Tue, 1 Jul 2008 18:24:00 +0000
Subject: [PATCH] add an example of a unix function implemented with \
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@673162 13f79535-47bb-0310-9956-ffa450edef68
---
docs/manual/CoreTypes/resources.html | 15 ++++++++++++++-
1 file changed, 14 insertions(+), 1 deletion(-)
diff --git a/docs/manual/CoreTypes/resources.html b/docs/manual/CoreTypes/resources.html
index f15bc2f90..0615d0b1c 100644
--- a/docs/manual/CoreTypes/resources.html
+++ b/docs/manual/CoreTypes/resources.html
@@ -887,7 +887,7 @@ larger collection. Since Ant 1.7.1.
Includes the string tokens gathered from a nested
resource collection. Uses the same tokenizers supported by the
-TokenFilter. Hint: imaginative
+TokenFilter. Imaginative
use of this resource collection can implement equivalents for such Unix
functions as sort
, grep -c
, wc
and
wc -l
.
@@ -917,6 +917,19 @@ larger collection. Since Ant 1.7.1.
LineTokenizer will be used.
+ Examples
+ <concat>
+ <union>
+ <sort>
+ <tokens>
+ <resources refid="input" />
+ <linetokenizer includedelims="true" />
+ </tokens>
+ </sort>
+ </union>
+</concat>
+
+ Implements Unix sort -u against resource collection input.