ant-user mailing list archives

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

--- Stefan Bodewig <> wrote:

> 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

Don Taylor, Developer
ACTS, Inc.

Do You Yahoo!?
Find the one for you at Yahoo! Personals

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message