ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Donald <>
Subject Re: Foreach task)
Date Tue, 12 Jun 2001 06:48:23 GMT
At 08:09 AM 6/12/01 +0200, Stefan Bodewig wrote:
><> wrote:
>> 'There should be no argument to any ant task which takes only a
>> singular argument.  It should take a list of possibly one item, and
>> promote a singular argument to a list of one if necessary.'
>I've been playing with that idea for some time as well - and came to
>the point that this would be much worse than a core-iterate task IMHO.
>I'm not sure how you've envisioned this yourself, I see two possible
>(1) *All* tasks must deal with iteration themselves.  Well, this makes
>writing tasks a lot harder than it currently is.
>(2) Tasks don't have to be aware that they are dealing with sets, Ant
>will invoke them once per set member.  Using this approach you add
>iteration into the core instead of moving it to the task level, this
>would mean adding complexity to a much bigger degree.

(3) Remove iteration from all tasks and core and implement it in another
layer ;)



| "Faced with the choice between changing one's mind, |
| and proving that there is no need to do so - almost |
| everyone gets busy on the proof."                   |
|              - John Kenneth Galbraith               |

View raw message