ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nick Chalko <n...@chalko.com>
Subject Re: Preventing Parent Classloading
Date Fri, 10 Oct 2003 20:58:51 GMT
Upayavira wrote:

> Samuel Gabriel wrote:
>
>> We ran into this problem in one of our projects. The solution we 
>> found is to
>> override the loadClass method so that it looks into the classloader 
>> classes
>> before it looks into the parent classes. This way if there are 
>> classes that
>> are conflicting our classes will always be loaded first.
>>  
>>
> Are you able to send me some sample code for your class loader? I've 
> been trying to achieve that myself but with no luck.
>
> Regards, Upayavira

Take a look at
http://cvs.sourceforge.net/viewcvs.py/krysalis/krysalis-centipede/src/java/org/krysalis/centipede/ant/OptionalClassLoader.java?rev=HEAD&content-type=text/vnd.viewcvs-markup

btw,  what was I suppose to do about the license. 
90% of the code is a straight copy from apache.

R,
Nick

Mime
View raw message