ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <>
Subject Re: Custom Ant tasks and classpath issue
Date Thu, 28 Feb 2002 09:30:45 GMT
On Wed, 27 Feb 2002, Vincent Massol <> wrote:

> I have just discovered today that Ant seems to put java.class.path
> by default in the task classpath. Thus, the second pathelement entry
> is actually not needed.

Hmm, no, not really.

Ant uses a delegating class loader, i.e. it will ask the system
classloader to load your task before even looking at the classpath you
have specified (and that's the reason why the build.sysclasspath
setting doesn't change anything).

<taskdef> has an undocumented and deprecated reverseloader attribute
that would make Ant consult the classpath you have specified before it
asks the system classloader.


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

View raw message