ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Hammant <>
Subject Re: <script> needs a classpath param
Date Tue, 07 Aug 2001 07:23:50 GMT
Stefan, Sam, 

> > What's a "context" class loader?
> Since JDK 1.2 you can [...]

My experience with Thread.setContextClassLoader() with Avalon is that it is not the cure all.
I had a vote here I'd vote -1.

> The problem Paul describes is as follows: BSF and Rhino and whatever
> get loaded via the system classloader, as long as they are in
> CLASSPATH or ANT_HOME/lib [...]

I think that's hinting at the solution.  ANT_HOME/lib/ for core Ant required jars and
ANT_HOME/tplib/ (tp being for third party).  The former for xerces.jar and ant's two jars.
latter for rhino, BSF, xalan, stylebook, rexx (etc).  The former are run through the ANT_HOME/bin
scripts as usual, the latter not - it's the responsibility of the <script>, <junit>
& <stylebook>
user to add the classpath elements.  Or not if the Ant user does not want to bother with

Regards - Paul H
CVS -1, Perforce +1

Do You Yahoo!?
Get your free address at
or your free address at

View raw message