Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 94491 invoked from network); 27 Apr 2007 17:23:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 27 Apr 2007 17:23:07 -0000 Received: (qmail 10434 invoked by uid 500); 27 Apr 2007 17:23:09 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 10406 invoked by uid 500); 27 Apr 2007 17:23:09 -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 10390 invoked by uid 99); 27 Apr 2007 17:23:09 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Apr 2007 10:23:09 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [206.190.58.155] (HELO web55106.mail.re4.yahoo.com) (206.190.58.155) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 27 Apr 2007 10:23:01 -0700 Received: (qmail 43054 invoked by uid 60001); 27 Apr 2007 17:22:40 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=HDwzoiKJ9SeT4ajwoim1Q/naYa5lDZz6bhQXibIyGolSfQg0EJv46KnGqfx0t5NvB7Oaa0pDx0jRaMZrybLmBPwxzStxUNLyXqQ6iDtHPkZFy/8w2m9FVse+32hskcXeU30vVkp+G5vUPbCKpHs0djW+So0WNSkz4LtvDV2Nfjc=; X-YMail-OSG: PAu9k9wVM1n7YVa.fuOE9JRiiqxEQEnpHroPtlwLd0IYiWzirxW_1OYj6_hSxukeozVHqYXnwEFYnmybwOLKJlKhiQ9okI1sAt_pW0bCKcCf8Fjlb3hhavqkJrIlGmA9HT9.swrCs9DhZGw- Received: from [66.10.233.130] by web55106.mail.re4.yahoo.com via HTTP; Fri, 27 Apr 2007 10:22:40 PDT Date: Fri, 27 Apr 2007 10:22:40 -0700 (PDT) From: Matt Benson Subject: Re: Perform a task for every folder from the file. To: Ant Users List In-Reply-To: <10222424.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Message-ID: <367057.42607.qm@web55106.mail.re4.yahoo.com> X-Virus-Checked: Checked by ClamAV on apache.org I can't recall when AC last had a release; you might have to build from the current source, wherein can handle any type that returns an Iterator. -Matt --- mpr wrote: > > I get > The type doesn't > support the nested > "antlib:net.sf.antcontrib:tokens" element. > > What version ant-contrib.jar should I have? > > > > Matt Benson wrote: > > > > > > --- mpr wrote: > > > >> > >> Hi, > >> > >> Could you provide an example, please? > >> > > > > > > > > file="tokens">foo${br}bar${br}baz${br} > > > > > > > > > > > > @@{t}=@{t} > > > > > > > > > > -Matt > > > >> > >> > >> Matt Benson wrote: > >> > > >> > The resourcecollection should be > directly > >> > passable to . > >> > > >> > HTH, > >> > Matt > >> > > >> > --- mpr > wrote: > >> > > >> >> > >> >> Hi, > >> >> > >> >> I have the file user.properties and inside a > >> paths > >> >> to folders are defined > >> >> e.g. > >> >> C:\Application\PackagingTools4 > >> >> C:\ApplicationTools2\PackagingTools3 > >> >> > >> >> For each folder from user.properties I need to > >> >> perform an Operation (task). > >> >> > >> >> What is the simplest way to do that? > >> >> At this moment I do: > >> >> > >> >> [CODE] > >> >> > >> >> description="genericTokenReplacements" > >> >> name="genericTokenReplacement"> > >> >> >> >> property="src.file.head"> > >> >> > >> >> > >> >> > >> >> property="nb.matching.tokens" > >> >> match="([\w\\/]+)+"> > >> >> > >> >> >> >> select="\1"/> > >> >> > >> >> > >> >> > >> >> > >> >> > >> >> > >> >> >> >> delimiter="${delimiter}" > >> >> match="~~(.+)" select="\1"/> > >> >> > >> >> > >> >> > >> >> > >> >> <--! OPERATION here--> > >> >> > >> >> > >> >> > >> >> > >> >> [/CODE] > >> >> > >> >> but I have noticed the problem. > >> >> >> >> delimiter="${delimiter}" > >> >> match="~~(.+)" select="\1"/> > >> >> trim out (eat) character "\" so i get full > path > >> to > >> >> folder whit out "\" > >> >> > >> >> Could you suggest to solve it? > >> >> Thank you in advance, > >> >> MR > >> >> > >> >> -- > >> >> View this message in context: > >> >> > >> > > >> > > > http://www.nabble.com/Perform-a-task-for-every-folder-from-the-file.-tf3658328.html#a10221352 > >> >> Sent from the Ant - Users mailing list archive > at > >> >> Nabble.com. > >> >> > >> >> > >> >> > >> > > >> > > > --------------------------------------------------------------------- > >> >> To unsubscribe, e-mail: > >> >> user-unsubscribe@ant.apache.org > >> >> For additional commands, e-mail: > >> >> user-help@ant.apache.org > >> >> > >> >> > >> > > >> > > >> > > __________________________________________________ > >> > Do You Yahoo!? > >> > Tired of spam? Yahoo! Mail has the best spam > >> protection around > >> > http://mail.yahoo.com > >> > > >> > > >> > > > --------------------------------------------------------------------- > >> > To unsubscribe, e-mail: > >> user-unsubscribe@ant.apache.org > >> > For additional commands, e-mail: > >> user-help@ant.apache.org > >> > > >> > > >> > > >> > >> -- > >> View this message in context: > >> > > > http://www.nabble.com/Perform-a-task-for-every-folder-from-the-file.-tf3658328.html#a10221747 > >> Sent from the Ant - Users mailing list archive at > >> Nabble.com. > >> > >> > >> > > > --------------------------------------------------------------------- > >> To unsubscribe, e-mail: > >> user-unsubscribe@ant.apache.org > >> For additional commands, e-mail: > >> user-help@ant.apache.org > >> > >> > > > > > > __________________________________________________ > > Do You Yahoo!? > > Tired of spam? Yahoo! Mail has the best spam > protection around > > http://mail.yahoo.com > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: > user-unsubscribe@ant.apache.org > > For additional commands, e-mail: > user-help@ant.apache.org > > > > > > > > -- > View this message in context: > http://www.nabble.com/Perform-a-task-for-every-folder-from-the-file.-tf3658328.html#a10222424 > Sent from the Ant - Users mailing list archive at > Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > user-unsubscribe@ant.apache.org > For additional commands, e-mail: > user-help@ant.apache.org > > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org