ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 34124] - <iterate> task suggestion
Date Tue, 22 Mar 2005 15:08:22 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=34124>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=34124





------- Additional Comments From peterreilly@apache.org  2005-03-22 16:08 -------
Due to history, Ant does not like to accept programming
statement like constructions - like if, for, try.
The ant-contrib project (amounst others) provides an implementation
of these contstructions/tasks for ant users.

This interation task would fit I think into the <for> task
as an iteration type:
<ac:for param="index">
   <ac:iterate iterations="3" offset="2" interval="2">
   <sequential>
       <echo>Iteration @{index}</echo>
   </sequential>
</ac:for>

  Iteration 2
  Iteration 4
  Iteration 6

And/or be a stand-only task.

The <for> task uses macrodef as an implemenation task, hence
use of @{} instead of ${}


I will mark this as WONTFIX (for ant), but the task/type would be usefull
for ant-contrib, so if you attach the task to this bug report
I will be able to add it to ant-contrib (when I get time....)


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message