ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stephen McConnell \(DPML\)" <>
Subject RE: classloader for 1.7
Date Fri, 25 Aug 2006 16:27:41 GMT

> -----Original Message-----
> From: Conor MacNeill [] 
> 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:
For additional commands, e-mail:

View raw message