Return-Path: Delivered-To: apmail-ant-dev-archive@www.apache.org Received: (qmail 2868 invoked from network); 22 Mar 2007 14:32:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 22 Mar 2007 14:32:29 -0000 Received: (qmail 16091 invoked by uid 500); 22 Mar 2007 14:32:36 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 16051 invoked by uid 500); 22 Mar 2007 14:32:36 -0000 Mailing-List: contact dev-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list dev@ant.apache.org Received: (qmail 16040 invoked by uid 500); 22 Mar 2007 14:32:36 -0000 Received: (qmail 16037 invoked by uid 99); 22 Mar 2007 14:32:36 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Mar 2007 07:32:36 -0700 X-ASF-Spam-Status: No, hits=-99.5 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Mar 2007 07:32:27 -0700 Received: by eris.apache.org (Postfix, from userid 65534) id AA2AC1A983A; Thu, 22 Mar 2007 07:32:07 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r521290 - /ant/core/trunk/docs/manual/CoreTypes/resources.html Date: Thu, 22 Mar 2007 14:32:07 -0000 To: ant-cvs@apache.org From: mbenson@apache.org X-Mailer: svnmailer-1.1.0 Message-Id: <20070322143207.AA2AC1A983A@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: mbenson Date: Thu Mar 22 07:32:06 2007 New Revision: 521290 URL: http://svn.apache.org/viewvc?view=rev&rev=521290 Log: a little poking at Jan's changes (thanks Jan) and elaborate on the \ selector example 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?view=diff&rev=521290&r1=521289&r2=521290 ============================================================================== --- ant/core/trunk/docs/manual/CoreTypes/resources.html (original) +++ ant/core/trunk/docs/manual/CoreTypes/resources.html Thu Mar 22 07:32:06 2007 @@ -652,7 +652,10 @@ 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 @@
         <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. +

--------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org For additional commands, e-mail: dev-help@ant.apache.org