ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: [Patch] namespace and antlib
Date Tue, 12 Aug 2003 12:24:11 GMT
On Tue, 12 Aug 2003, peter reilly <peter.reilly@corvil.com> wrote:
> On Tuesday 12 August 2003 12:36, Stefan Bodewig wrote:
>> On Fri, 1 Aug 2003, peter reilly <peter.reilly@corvil.com> wrote:
>> >   <typedef resource="net/sf/antcontrib/antlib.xml"
>> >            uri="antlib:net.sf.antcontrib"
>> >            classpath="/tmp/ant-contrib.jar"/>
>>
>> wouldn't the resource attribute be redundant in that case?
> 
> Not in this case. The automatic lookup of
> uri="antlib:net.sf.antcontrib" to net/sf/antcontrib/antlib.xml
> resource currently is done once when the ns prefix is encountered
> the first time - it does not take place at the <typedef/> task.

The obvious question would be: Why not?

> I have changed this to ant:*,

Hmm, what will be the replacement for antlib:*?

> as I found when testing that the current code reserves antcontrib:
> and antelope: ....

Sure, I don't see a problem, though.

> This makes sense, but would involve some messing with classloaders
> and scanning of the jar files in ANT_HOME/antlibs.

I know.

> Each time I look at classloaders, my head melts down....

You are not alone ;-)

Seriously, once you've started to really look into classloaders they
are not that bad.  Only hard to do right (I'm not sure whether I've
ever done so 8-).

Stefan

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


Mime
View raw message