RE: ant tasks creation of classloaders

2005-06-20 Thread Rainer Noack
> -Original Message- > From: Max Rydahl Andersen [mailto:[EMAIL PROTECTED] > Sent: Monday, June 20, 2005 7:42 AM > To: [EMAIL PROTECTED]; 'Ant Developers List' > Subject: Re: ant tasks creation of classloaders > > > > > If you want your "l

RE: ant tasks creation of classloaders

2005-06-20 Thread Hyke, Lea
Please unsubscribe the [EMAIL PROTECTED] from your list. -Original Message- From: Max Rydahl Andersen [mailto:[EMAIL PROTECTED] Sent: Saturday, June 18, 2005 2:44 PM To: dev@ant.apache.org Subject: ant tasks creation of classloaders Hi guys, Having some "fun" issues with classloading th

Re: ant tasks creation of classloaders

2005-06-19 Thread Max Rydahl Andersen
If you want your "local" classloader a childloader of the task's loader you should - as of less classpath overhead - simply code new URLClassloader(this.getClass().getClassloader(),localClasspath) (and set it as ThreadContextClassloader) unless you want to support things like "isolate"...

RE: ant tasks creation of classloaders

2005-06-19 Thread Rainer Noack
Hi Max, not surprising. getProject().createClassLoader(classPath) creates a new AntClassLoader with the given classpath and set CoreLoader (which is usually null) as it's parent(Same as ). AntClassLoader uses System.getClassloader() as it's default parent unless you set another parent loader expl