You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Ja...@rzf.fin-nrw.de on 2004/07/02 13:28:14 UTC

AW: How to set new property in custom task to be available to the nexted tasks inside it?

> Betreff: How to set new property in custom task to be available to the
> nexted tasks inside it?

Iterate over the nested Tasks and call their perform() method.
See oata.taskdefs.Sequential for an example.


> I want to create a custom task which would execute the tasks inside it
> iteratively. For example I want a custom task "tokenizer" as follows :
> 
> <tokenizer delemeter="," inputstring="sharad,rajesh,praveen">
> 	<echo message="${tokenextracted}"/>
> </tokenizer>

Why donĀ“t you use AntContribs <for> or <foreach>?



Jan