Re: For loop

2008-07-22 Thread Scot P. Floess
You can't do it with the stock Ant Contrib for loop... I've written something that does just that...using Ant Contrib - but its not a perfect solution. You could conceivably do so scripting... Or, there is another project: http://antxtras.sourceforge.net/AntXtras/download.html I believe th

Re: For loop question

2007-06-29 Thread broken connection
problem is to reference your @{argvalue} in > the outputproperty name. So something like: > > > > Ben > > -Original Message- > From: broken connection [mailto:[EMAIL PROTECTED] > Sent: Friday, June 29, 2007 11:57 AM > To: Ant Users List; [EMAIL PROTECTED] &

Re: For loop question

2007-06-29 Thread Scot P. Floess
- From: broken connection [mailto:[EMAIL PROTECTED] Sent: Friday, June 29, 2007 11:57 AM To: Ant Users List; [EMAIL PROTECTED] Subject: Re: For loop question 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 si

RE: For loop question

2007-06-29 Thread Burgess, Benjamin
The common solution to this problem is to reference your @{argvalue} in the outputproperty name. So something like: Ben -Original Message- From: broken connection [mailto:[EMAIL PROTECTED] Sent: Friday, June 29, 2007 11:57 AM To: Ant Users List; [EMAIL PROTECTED] Subject: Re: For

Re: For loop question

2007-06-29 Thread broken connection
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:

Re: For loop question

2007-06-29 Thread Scot P. Floess
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: description = "Allows one to iterate over a list/files and for ea

Re: For loop

2006-06-09 Thread Scot P. Floess
Yes, I am using 1.6.5. I never tested using an inner for loop - did it work? Guru Balse wrote: Awesome, Scot. It works well! Can't wait for the "better" solution that you are about to create :-) You must use 1.6.5 for this (for example, 1.6.2 did not work) classpath="/apache-ant-1.6.5ant

Re: For loop

2006-06-09 Thread Guru Balse
Awesome, Scot. It works well! Can't wait for the "better" solution that you are about to create :-) You must use 1.6.5 for this (for example, 1.6.2 did not work) classpath="/apache-ant-1.6.5ant1.6.2/lib/ant-contrib-1.0b1.jar"/>