On Tue, 12 Aug 2003, peter reilly <[EMAIL PROTECTED]> wrote: > On Tuesday 12 August 2003 12:36, Stefan Bodewig wrote: >> On Fri, 1 Aug 2003, peter reilly <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]