ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Benjamin de Dardel <benjamin.dedar...@gmail.com>
Subject Re: AW: antlib.xml : defining taskdefs with attributes
Date Sun, 17 Oct 2010 17:40:17 GMT
Yes, I can create subclasses and configure attributes there.
Thanks,
Benjamin

Le 17/10/2010 17:15, Jan Matèrne a écrit :
> I would think this is more a configuration of the task - and therefore an
> attribute of the task itself.
>
>
> Jan
>
>    
>> -----Ursprüngliche Nachricht-----
>> Von: Benjamin de Dardel [mailto:benjamin.dedardel@gmail.com]
>> Gesendet: Sonntag, 17. Oktober 2010 15:56
>> An: dev@ant.apache.org
>> Betreff: antlib.xml : defining taskdefs with attributes
>>
>> Hi,
>>
>> I would like to instanciate a same task in different contexts.
>> Is there a way to define taskdef attributes ?
>>
>> For example, something like that :
>> # antlib.xml
>> <taskdef name="task1" classname="MySameTask">
>> <attribute name="context" value="context1" />
>> </taskdef>
>>
>> <taskdef name="task2" classname="MySameTask">
>> <attribute name="context" value="context2" />
>> </taskdef>
>>
>> # build.xml
>> <task1 ...>
>> <task2 ...>
>>
>> Regards,
>> Benjamin de Dardel
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
>> For additional commands, e-mail: dev-help@ant.apache.org
>>      
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
> For additional commands, e-mail: dev-help@ant.apache.org
>
>
>    


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


Mime
View raw message