ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Don Taylor <donald_l_taylor...@yahoo.com>
Subject Re: class.forName()
Date Mon, 19 Nov 2001 12:51:50 GMT

--- Stefan Bodewig <bodewig@apache.org> wrote:

<snip>
 
> Everything you have in your CLASSPATH or in ANT_HOME/lib will end up
> in your system classloader when you run Ant.  If your task
> implementation can be loaded via this classloader, it *will* be
> loaded
> via this classloader, no matter what.  If this task now needs a class
> from a library that is not in your classpath, it won't find it (as
> the
> classloader used to load your task doesn't know about these
> libraries).

This is true, but when you declare your taskdef you can embed a
classpath element within your taskdef to put these libraries into your
classpath. Works like a charm because now Ant's classloader, the one
being used to load the custom task, knows how to find the supporting
tasks.


=====
Don Taylor, Developer
ACTS, Inc.
www.actsi.com

__________________________________________________
Do You Yahoo!?
Find the one for you at Yahoo! Personals
http://personals.yahoo.com

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