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

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"...