ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Hammant <paul_hamm...@yahoo.com>
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.
 If
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.
 The
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
ANT_HOME/tplib/




=====
Regards - Paul H
====
CVS -1, Perforce +1

____________________________________________________________
Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie

Mime
View raw message