ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Donald <dona...@apache.org>
Subject Re: class.forName()
Date Fri, 16 Nov 2001 21:25:58 GMT
On Sat, 17 Nov 2001 01:47, Mark Claassen wrote:
> > The class you are looking up should be in the same classloader or
> > a parent
> > classloader of your task. So if your task is loaded from ant/lib then the
> > other class must also be in ant/lib etc.
>
> Does ant use a different class loader for every task definition? 

Not at the moment. It follows standard rules of Java2 classloading - just 
that ant/lib happens to be in system classloader. Any taskdef will use a new 
ClassLoader so any task that is loaded via taskdef (and isn't in system 
ClassLoader) will use a new ClassLoader.


> > Cheers,
> >
> > Pete
> >
> > ---------------------------------
> > I think not; therefore I ain't...
> > ---------------------------------
> >
> > --
> > To unsubscribe, e-mail:  
> > <mailto:ant-user-unsubscribe@jakarta.apache.org> For additional commands,
> > e-mail: <mailto:ant-user-help@jakarta.apache.org>

-- 
Cheers,

Pete

------------------------------------------------------
 Mark Twain: "In the real world, the right thing never
happens in the right place at the right time. It is 
the task of journalists and historians to rectify 
this error."
------------------------------------------------------

--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message