From c07521eee2396c407762f6827e0a7dd661788224 Mon Sep 17 00:00:00 2001 From: Matthew Jason Benson Date: Thu, 22 Mar 2007 14:32:06 +0000 Subject: [PATCH] a little poking at Jan's changes (thanks Jan) and elaborate on the \ selector example git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@521290 13f79535-47bb-0310-9956-ffa450edef68 --- docs/manual/CoreTypes/resources.html | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/docs/manual/CoreTypes/resources.html b/docs/manual/CoreTypes/resources.html index b1b52b8fe..ee4e445a1 100644 --- a/docs/manual/CoreTypes/resources.html +++ b/docs/manual/CoreTypes/resources.html @@ -652,7 +652,10 @@ platforms. using the nested <control> element, which denotes a resources collection.

Examples

-

The following selects files a, b, c, and d:

+

Assuming the namespace settings +

  rsel="antlib:org.apache.tools.ant.types.resources.selectors"
+  rcmp="antlib:org.apache.tools.ant.types.resources.comparators"
+
The following selects files a, b, c, and d:

 <restrict>
   <fileset dir="src" includes="a,b,c,d,e,f,g" />
@@ -764,8 +767,12 @@ platforms.
         <date />
       </reverse>
     </sort>
-

This takes all files from foo and sorts it by modification date in reverse order. - Because 'reverse' is in an internal antlib you have to set the namespace explicitly.

+

This takes all files from foo + and sorts them by modification date in reverse order. + Because the resource comparators used (<reverse> + and <date>) are in an internal antlib + their namespace must be set explicitly. +