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
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]
&
-
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
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
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:
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
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
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"/>