ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Vernum <Tim.Ver...@macquarie.com.au>
Subject RE: [DISC] Task API
Date Mon, 02 Apr 2001 08:44:19 GMT

From: Stefan Bodewig [mailto:bodewig@apache.org]

> > When it is a container task or a dynamic one like proposed for
> > property. ie
> > 
> > <if test="...">
> >   <some-other-task/>
> > </fi>
> 
> I still don't get it, sorry. Somehow If.createTask("some-other-task")
> or similar would have been called anyway, wouldn't it?

Unless a brainfart is getting to me, then the current API would do

	Task taskIf = new IfTask() ;
	taskIf.createSomeOtherTask() ;

which is not what you want.
The proposed "give the task access to the model" solution is one way
of solving that. (It's not the only one though).

I'm not sure if that's what Peter was getting at though.

Mime
View raw message