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: NameSpace & antlib was (Re: polymorphism)
Date Mon, 28 Apr 2003 17:41:44 GMT

peter reilly wrote, On 28/04/2003 19.37:
> On Sunday 27 April 2003 22:14, Wannheden, Knut wrote:
...
>>but maybe the buildfile author wants/needs to specify the namespace URI
>>(anything really), in which case an additional "ns" attribute could be
>>used:
>>
>>	<antlib resource="${foo.jar}" ns="urn:antlib:foo"/>
>>	<foo:bar xmlns:foo="urn:antlib:foo"/>
> 
> 
> This is fine.
> <antlib file="${ant-contrib.jar}" ns="antlib:antcontrib"/>
> <antcontrib:if xmlns:antcontrib ="antlib:antcontrib"....>
> <target xmlns:antcontrib="antlib:antcontrib" name="compile">
>    <antcontrib:propertycopy .../>
> </target>

This is *veeeeery* ugly. I like that Ant buildfiles are reasonably 
readable, and would like to have it maintained if possible.

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


Mime
View raw message