ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Maciek Zywno <z...@toya.net.pl>
Subject Re: about DynamicConfigurator - addFoo ( Foo foo ) invoked if Foo is a DynamicConfigurator?
Date Tue, 30 Dec 2003 23:28:44 GMT
Conor MacNeill wrote:

>>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
>  
>
So one more question: why would one have Foo class extend 
DynamicConfigurator if there is already method add/createFoo( Foo foo ) 
in custom task?

Regards

Maciek


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


Mime
View raw message