> -----Original Message----- > From: Conor MacNeill [mailto:[EMAIL PROTECTED] > Sent: Friday, 25 August 2006 9:42 AM > To: Ant Developers List > Subject: Re: classloader for 1.7 > > I'm +1 on having the classloader task and being able to add > paths to the main Ant classloader. Internally, we have been > using a very simple task to extend the classpath and it is a > very elegant solution for users who don't want to modify > their ant install, etc. It is not without its hazards but > those can be documented and are outweighed by the benefits. > > Peter, perhaps you could explain why the current task does > not work. I must admit the proposal seemed quite complicated.
I'm guessing that the current implementation does not work because the system classloader is not a AntClassLoader. At runtime the system classloader is an instance of sun.misc.Launcher$AppClassLoader (when running under JRE 1.4) and the classloader used to establish the Ant Project classloader is an instance of URLClassLoader. As such neither the system and project classloaders are immutable. Cheers, Steve. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]