ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jose Alberto Fernandez" <>
Subject RE: Poor support for selectors
Date Fri, 12 Mar 2004 16:13:49 GMT
> From: Peter Reilly [] 
> This is a known problem with beanshell 2.0b1.
> You need to just call the script once in a top-level
> target (! i.e. do not place the script task at the 
> top-level!) and then use the antcall's.
> <scripttypedef/> solves this problem by checking if the 
> scripttypedef has been defined before.

Another thing we could do, and this is two fold:

1) Add classpathref and/or classloader attribute to <script>
So that one can indicate it should use a different classloader.
The API is there in BSF, but we do not use it.

2) This will allow all java-based languages to find and use
classes not loaded by ANT directly. Andin particular, since this
would instantiate an internal AntClassLoader, then we have
the dispossable classloader effect we were looking for.

It should all work as long as the parent classloader is correctly set.

Jose Alberto

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

View raw message