Home » Language IDEs » ServerTools (WTP) » Need org.eclipse.wst.server plugin
|
Re: Need org.eclipse.wst.server plugin [message #217191 is a reply to message #217138] |
Wed, 09 July 2008 12:59 |
David Williams Messages: 722 Registered: July 2009 |
Senior Member |
|
|
On Tue, 08 Jul 2008 17:40:37 -0400, John J Barton <johnjbarton@johnjbarton.com> wrote:
> My plugin requires org.eclipse.wst.server. However, it does not make
> sense to tell my users that: they will just ask me what version of
> eclipse they need. So...how can I map a plugin requirement to a version
> of eclipse requirement?
>
There is probably more than one way to do this, depending on exactly what you are trying to do, and with which version of eclipse you are trying to work with, so take these remarks as sort of an outline of what could be done, and fine tune to your needs.
First, make sure you have the correct 'range' specified in your plugin's manfest.mf requires statement (and by correct, I mean the lowest workable version to the highest version possible ... ideally something like
Require-Bundle: org.eclipse.wst.server.core;bundle-version="[1.0.0,2.0.0)"
Then, you'll need a feature, which _includes_ your plugin, but 'requires' the wst.server.core plugin, with the same version ranget specified. This feature comes into play when your code is installed. If the user already has a suitable one installed, fine, if not it will attempt to "pull" one from somewhere. You can actually reship it if you want! With P2 I think there's ways you can "point to" where to get it (though not sure those techniques are well documented yet ... but, don't be afraid to look, they might be.
Does this help? Or, have I mis-read your question?
|
|
|
Re: Need org.eclipse.wst.server plugin [message #217228 is a reply to message #217191] |
Wed, 09 July 2008 16:45 |
John J. Barton Messages: 311 Registered: July 2009 |
Senior Member |
|
|
David Williams wrote:
> On Tue, 08 Jul 2008 17:40:37 -0400, John J Barton <johnjbarton@johnjbarton.com> wrote:
>
>> My plugin requires org.eclipse.wst.server. However, it does not make
>> sense to tell my users that: they will just ask me what version of
>> eclipse they need. So...how can I map a plugin requirement to a version
>> of eclipse requirement?
>>
>
> There is probably more than one way to do this, depending on exactly what you are trying to do, and with which version of eclipse you are trying to work with, so take these remarks as sort of an outline of what could be done, and fine tune to your needs.
>
> First, make sure you have the correct 'range' specified in your plugin's manfest.mf requires statement (and by correct, I mean the lowest workable version to the highest version possible ... ideally something like
>
> Require-Bundle: org.eclipse.wst.server.core;bundle-version="[1.0.0,2.0.0)"
>
> Then, you'll need a feature, which _includes_ your plugin, but 'requires' the wst.server.core plugin, with the same version ranget specified. This feature comes into play when your code is installed. If the user already has a suitable one installed, fine, if not it will attempt to "pull" one from somewhere. You can actually reship it if you want! With P2 I think there's ways you can "point to" where to get it (though not sure those techniques are well documented yet ... but, don't be afraid to look, they might be.
So I need to put dependency information on the feature as well as the
plugin? That explains a lot right there: I just imagined that the
feature did this already (otherwise what would it be good for?)
I'll look in to the feature thing.
>
> Does this help? Or, have I mis-read your question?
Yes, and yes! I was asking a dumber question: what do I tell users when
they don't have my pre-req. But your answer might also fix them.
Thanks,
John.
|
|
|
Goto Forum:
Current Time: Thu Apr 18 11:22:30 GMT 2024
Powered by FUDForum. Page generated in 0.01683 seconds
|