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