[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [platform-ant-dev] Using other eclipse plugin resources from contributed ant task.
|
Hi Darins,
Thanks for the
response.
I've defined my task using the extension point. What should I
specify as the library tag that would normally be pointing to a JAR with my
task? Right now, I've tried just specifying the "bin" directory and it seems to
work alright until we decide to package this stuff. The ClassLoaders seem to be
very fragile and will load certain classes just fine but throw NPE's on
others.
How does one get access to the AntClassLoader? I'm assuming that
I could get the Class for the task I've defined, and ask the class for its
classloader, which would be the one used in ant. After that, how can you set the
classloader's parent?
Chris
Thursday, February
19, 2004 2:25 PM
To: platform-ant-dev@xxxxxxxxxxx
cc:
From: Darin
Swanson <Darin_Swanson@xxxxxxxxxx>
Subject: Re: [platform-ant-dev]
Using other eclipse plugin resources from contributed ant
task.
If the dependancies are
set up correctly for the plugin you are providing the task from.
Using the Eclipse extension point for defining
tasks, the plugin classloader for the plugin contributing the task is added as a
parent classloader of the AntClassLoader that is used during the build.
Then you could get a class from the other
plugin, get its classloader and ask that classloader to load the resource.
I have not tried it but it should
work...famous last words :-) HTH Darins
| Chris McGee
<cbmcgee@xxxxxxxxxx> Sent by: platform-ant-dev-admin@xxxxxxxxxxx
02/19/04 10:52 AM Please respond to platform-ant-dev
| To:
platform-ant-dev@xxxxxxxxxxx cc:
Subject:
[platform-ant-dev] Using other eclipse plugin
resources from contributed ant task.
|
Hi All,
Sorry if this question has an obvious
answer. I'm just starting to learn
about Ant and its integration into Eclipse
3.
Is it possible to define an Ant task in one of my plugins so that it
may
access the other plugins that the plugin has dependencies? I'm able to
get
an Ant task to work by creating a separate Jar that is not loaded as
part
of my plugin but I would like ant task to have access to all of
the
resources available from the other plugins.
Thanks,
Chris
McGee
IBM
Ottawa,
Canada
_______________________________________________
platform-ant-dev
mailing
list
platform-ant-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/platform-ant-dev