ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nicola Ken Barozzi <nicola...@apache.org>
Subject Re: Antlib... when?
Date Sun, 05 Jan 2003 16:35:23 GMT

Costin Manolache wrote:
> Nicola Ken Barozzi wrote:
> 
> 
>>>Nicola - you can just use taskdef with a resource parameter and define
>>>all the cents at once.
>>
>>Yup, but you still have to do it.
>>
>>I want to simply make the user add a <centipede/> tag in the buildfile,
>>but since it's not loaded, it cannot load others the way you say...
>>catch22.
> 
> 
> <project xmlns:cent="... " >
>   <cent:centipeded/>
>   ...
> 
> 
> Sounds simple enough.
> 
> Or:
>  <antlib name="org.krysalis.cents..."/>
>  <centipede>
> 
> One line (or ns ) describing the fact that the build file is using centipede
> is not too much to ask.

As always, actual code clears things: the above mechanisms seem just fine +1

Thanks for taking time to explain it to this point :-)

> BTW, centipede can define aditional antlibs if it wants ( I think it would
> be better to require the user to declare all libs it uses - like in XSTL or 
> JSP - but it's your choice on what centipede does ).

Yes. We do it with <importcent/>, except the core tasks we load with 
<centipede/>

-- 
Nicola Ken Barozzi                   nicolaken@apache.org
             - verba volant, scripta manent -
    (discussions get forgotten, just code remains)
---------------------------------------------------------------------


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


Mime
View raw message