Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 63070 invoked from network); 3 Feb 2011 10:14:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 3 Feb 2011 10:14:18 -0000 Received: (qmail 39385 invoked by uid 500); 3 Feb 2011 10:14:18 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 38999 invoked by uid 500); 3 Feb 2011 10:14:15 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 38986 invoked by uid 99); 3 Feb 2011 10:14:14 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Feb 2011 10:14:14 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [88.84.128.168] (HELO samaflost.de) (88.84.128.168) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Feb 2011 10:14:04 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by samaflost.de (Postfix) with ESMTP id 14564289801D for ; Thu, 3 Feb 2011 11:13:44 +0100 (CET) Received: from samaflost.de ([127.0.0.1]) by localhost (v35516.1blu.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id QBzL7Z2ZTUO1 for ; Thu, 3 Feb 2011 11:13:42 +0100 (CET) Received: by samaflost.de (Postfix, from userid 1000) id 6C608289801E; Thu, 3 Feb 2011 11:13:42 +0100 (CET) From: Stefan Bodewig To: user@ant.apache.org Subject: Re: includesfile in fileset is not respecting order References: <1296721713254-3368946.post@n5.nabble.com> X-Draft-From: ("nnfolder:mail.jakarta-ant-user" 68900) Date: Thu, 03 Feb 2011 11:13:42 +0100 In-Reply-To: <1296721713254-3368946.post@n5.nabble.com> (kwooda@gmail.com's message of "Thu, 3 Feb 2011 00:28:33 -0800 (PST)") Message-ID: <87sjw55stl.fsf@v35516.1blu.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Checked: Checked by ClamAV on apache.org On 2011-02-03, kwooda wrote: > I am iterating over files listed in an includesfile file and they need > to be processed in the order that they are specified, but instead they > are being processed in alphanumeric order. Why is this sorting > occurring, and how do I get around it? It is not includesfile that doesn't preserve the sorting, it is the fileset. filesets are unordered and may change order while you don't look at them (in reality this statement isn't true, but you better use filesets if it was true). If you need something sorted you can use a filelist or a path or wrap the whole thing into a sort resource collection. > append="false"> > casesensitive="false" /> > filelist doesn't have an includesfile attribute, nor has path. has, so this could become The prefixlines is necessary so you can use relative file names in your includesfile. If you are able to use absolute file names in there you can just get rid of the filter. Stefan --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org