ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From peter reilly <peter.rei...@corvil.com>
Subject Re: Nested Tasks
Date Tue, 14 Oct 2003 14:38:03 GMT
It does in ant 1.6.
In ant 1.5 it does not as the task
would have already been resolved.

If execute is not used in ant 1.6 I get
the error you are getting:
 Could not create task of type: task2

Just make sure that you are not running ant 1.6.

Peter

On Tuesday 14 October 2003 15:31, Bender, Christopher wrote:
> ok but that doesnt help ant find the task.
> but thanks for that, i remember reading to call perform somewhere.
>
> -----Original Message-----
> From: peter reilly [mailto:peter.reilly@corvil.com]
> Sent: Tuesday, October 14, 2003 10:28 AM
> To: Ant Users List
> Subject: Re: Nested Tasks
>
> On Tuesday 14 October 2003 15:15, Bender, Christopher wrote:
> > 	private void executeChildren() {
> > 		Iterator taskItr = tasks.iterator();
> > 		while (taskItr.hasNext()) {
> > 			((Task)taskItr.next()).execute();
> > 		}
>
> You need to do ((Task)taskItr.next()).perform() and not
> execute.
>
> Peter
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org


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


Mime
View raw message