ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Conor MacNeill" <co...@cortexebusiness.com.au>
Subject RE: about DynamicConfigurator - addFoo ( Foo foo ) invoked if Foo is a DynamicConfigurator?
Date Tue, 30 Dec 2003 15:12:01 GMT
> From: Maciek Zywno [mailto:zywno@stud.ics.p.lodz.pl]
> Subject: about DynamicConfigurator - addFoo ( Foo foo ) invoked if Foo
> is a DynamicConfigurator?
>
>
> Let's assume that addFoo ( Foo foo ) is a method of a class(my custom
> task) extending org.apache.tools.ant.Task.
> I would like to know if ant invokes such method only if it comes across
> <foo> in xml file.

Yes

> Do I get it right that this is why DynamicConfigurator is extended , I
> mean Foo is to extend DynamicConfigurator, right?

No. DynamicConfigurator is used when the element to add has no corresponding
method in your task. IOW, you want to support a <foo> element but you do not
have addFoo() or createFoo() methods in your task. For most tasks you do not
need to use DynamicConfigurator.

Conor




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


Mime
View raw message