Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-ant-dev] Heads up: Eclipse Ant Support will be changing

Why do I have to specify a library in the new XML element you are
proposing?

> <extension point="org.eclipse.ant.core.antTasks">
>    <antTask name="myTask" class="com.examples.MyTask"
>             library="lib/myjar.jar"/>
> </extension>
>
> The contributions to these extension points are used to automatically
> include
> these library JARs on the Ant classpath, and to fabricate appropriate Ant
> taskdefs. And any plug-in that contributes to these extension points is
> automatically included on the classpath as a collaborating class loader.

You claim that the classloader of a plug-in that contributes to this
extension point is automatically included on the classpath. Doesn't that
mean that class com.examples.MyTask will be found in the plug-in jar?
If not, how can MyTask in turn refer to plug-in classes that are not
in myjar.jar?

-Aldo



Back to the top