Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 32229 invoked from network); 29 Jun 2007 15:57:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 29 Jun 2007 15:57:56 -0000 Received: (qmail 76517 invoked by uid 500); 29 Jun 2007 15:57:52 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 76483 invoked by uid 500); 29 Jun 2007 15:57:52 -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 76472 invoked by uid 99); 29 Jun 2007 15:57:52 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Jun 2007 08:57:52 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of brokenconnection@gmail.com designates 66.249.92.171 as permitted sender) Received: from [66.249.92.171] (HELO ug-out-1314.google.com) (66.249.92.171) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Jun 2007 08:57:47 -0700 Received: by ug-out-1314.google.com with SMTP id q2so814539uge for ; Fri, 29 Jun 2007 08:57:25 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=UT6lApH/2qZO9WlPvlVt/tv+HUNQ11eOuNyMc0LmnrlU79VOUvZOwlFz1uMLzeLBA0Im4aSAOPzCc7Q2RIPAp4FBzeDV5gv+Ey8b0lMdHEr71D4EIV6EqSt9zA6blaLDP7SVQYBvvtHAxMo+DIDxMFcIj6SKjc0sp6nGwZhNIQc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=d52+K0SgDv5pIyOXMVvrNp3bRSriXQz/QJtNrISz/WxvehKbtbtmusnwOUK4mlGfycpkUgveyrhOPAFSo/fRRvcWfIfgKZt6YwiDj9Z32mWVFek98MYXlQJHIKMeKHjjhC14TCddwhiaVeqWnEmyKoa2gyHna1ZnxkWqQVsSNVc= Received: by 10.82.174.20 with SMTP id w20mr6543467bue.1183132642885; Fri, 29 Jun 2007 08:57:22 -0700 (PDT) Received: by 10.82.140.18 with HTTP; Fri, 29 Jun 2007 08:57:22 -0700 (PDT) Message-ID: <2ae0eaa40706290857y6edd78bet771e4d20f78a10a2@mail.gmail.com> Date: Fri, 29 Jun 2007 11:57:22 -0400 From: "broken connection" To: "Ant Users List" , floess@mindspring.com Subject: Re: For loop question In-Reply-To: <4685276C.3030302@mindspring.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_85645_28877350.1183132642808" References: <2ae0eaa40706290805x4935ff48j447edebf949e2156@mail.gmail.com> <4685276C.3030302@mindspring.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_85645_28877350.1183132642808 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Wow..now thats too much code for me!!!!! I don't want something that complex,is this the only way to accomplish this or some simpler way is also there, I was thinking of something like this: "Do your stuff here for property1" /> ..... ..... ..... If not,I would try to understand your code,modify it and use for my needs. Thanks Again..... On 6/29/07, Scot P. Floess wrote: > > Interesting question... I actually had a need to iterate over a list > (using for loop construct) but needed the previous, current and next > elements in the list - certainly similar functionality. Here is my > macro def: > > name = "process-list" > description = "Allows one to iterate over a list/files and for > each element in the list know the previous, current and next values." > uri = "http://jplate.sourceforge.net/utility"> > > > > "jplate-utility.PREVIOUS" description = "Name of property to hold > previous value in list."/> > "jplate-utility.CURRENT" description = "Name of property to hold > current value in list."/> > "jplate-utility.NEXT" description = "Name of property to hold next > value in list."/> > > "Files to process."/> > > > > > > > > > > "@{delimiter}" param = "processlist"> > > > > > > > > = "@{processlist}"/> > > > > "@{processlist}"/> > > > > value = "${@{current}}"/> > value = "@{processlist}"/> > > > > > > > > > > > > > > > > > broken connection wrote: > > Hi Friends, > > I have a simple "for" task question. I use this for task from > > ant-contrib: > > > > > param="argvalue"> > > > > > > > > > > > > > > > > > > > > > > > > I want to pass in 3 values and store the output in 3 different > > properties . > > Is there anyway to do this?? > > > > Rite now, the output of all the 3 parameters gets overritten in " > > result.property" > > > > Your help would be greatly appreciated. > > Thanks > > > > -- > Scot P. Floess > 27 Lake Royale > Louisburg, NC 27549 > > 252-478-8087 (Home) > 919-392-6730 (Work) > > Chief Architect JPlate http://sourceforge.net/projects/jplate > Chief Architect JavaPIM http://sourceforge.net/projects/javapim > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org > For additional commands, e-mail: user-help@ant.apache.org > > ------=_Part_85645_28877350.1183132642808--