ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan.Mate...@rzf.fin-nrw.de
Subject AW: How to set new property in custom task to be available to the nexted tasks inside it?
Date Fri, 02 Jul 2004 11:28:14 GMT
> 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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message