| Sets the RootLoader as reference.
Reexecution of this task will set a new instance of RootLoader for
the reference.
arguments:
all arguments are requiered.
As ant requieres an AntClassLoader as reference, this will create a RootLoader
and set an AntClassLoader as child and stored in the reference. The AntClassLoader
instance will not have a classpath nor will it have access to the classpath somehow,
all loading is done by the RootLoader parent. To avoid problems with loading classes
multiple times and using them at the same time, this task will filter out the ant jars
and the commons-logging jars. This only works if the ant jars are starting with "ant-" and
the logging jar starts with "commons-logging-".
This was needed because if ant wants to access a task argument that uses for example a Path
it look for a matching method which includes a matching class. But two classes of the same name
with different classloaders are different, so ant would not be able to find the method.
See Also: org.codehaus.groovy.tools.RootLoader author: Jochen Theodorou version: $Revision: 3836 $ |