Return-Path: X-Original-To: apmail-ant-user-archive@www.apache.org Delivered-To: apmail-ant-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E56E810004 for ; Mon, 15 Apr 2013 12:56:39 +0000 (UTC) Received: (qmail 4775 invoked by uid 500); 15 Apr 2013 12:56:39 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 4320 invoked by uid 500); 15 Apr 2013 12:56:38 -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 64388 invoked by uid 99); 15 Apr 2013 12:43:54 -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) Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\)) Subject: Re: avoid duplicates with pathconvert and mappers From: Peter West In-Reply-To: Date: Mon, 15 Apr 2013 22:43:21 +1000 Content-Transfer-Encoding: quoted-printable Message-Id: References: To: "Ant Users List" X-Mailer: Apple Mail (2.1503) X-Virus-Checked: Checked by ClamAV on apache.org Sorry Patrick, I misread you completely. Why not create a temp directory, and touch a file with each selected = name in that directory? That would eliminate duplicates. You could then = apply the fileset and filters to the temp directory. Peter West "Have you believed because you have seen me? Blessed are those who have = not seen and yet believe." On 15/04/2013, at 7:22 PM, Patrick Martin wrote: > Hello, >=20 > I have a folder looking like: > folder1/file-1.txt > folder1/file-2.txt > folder2/file-1.txt > folder2/file-3.txt >=20 > i'd like to list the file ids: 1,2,3. >=20 > Trying with pathconvert: > > > > > > > >=20 > However, the id 1 gets duplicated. Is there anyway I can avoid this = dupe? >=20 > The pathconvert attribute preserveduplicates=3D"false" does not bring = any > help here. > I also tried the uniq filter in a filtermapper, without luck. >=20 > Thank you in advance, >=20 > Patrick --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org