Using P2 outside eclipse/rcp application [message #755937] |
Thu, 10 November 2011 04:19  |
Eclipse User |
|
|
|
Hello,
at the moment I am maintaining an application with a swing GUI and no relation to eclipse or RCP. In this application I want to integrate an update mechanism to load different jar files from the web. These files have different versions and are updated very often.
Coming from different eclipse plug-in projects, I thought that p2 is a good way to do that. So I tried to find some articles or tutorials about this, but everything I found is related to eclipse or RCP applications.
Does anybody of you know how to use p2 outside of an eclipse/rcp application?
Greetings
Lars
|
|
|
Re: Using P2 outside eclipse/rcp application [message #755956 is a reply to message #755937] |
Thu, 10 November 2011 05:17   |
Eclipse User |
|
|
|
Should be doable as long as it is OSGi based (if not, making your app
OSGi should not be very difficult). IIRC, the latest Equinox-book
(JeffMcAffer, ...) explains OSGi/p2 in action.
In a worst case scenario, you can always run p2 as an external updater,
managing something other than "itself".
Regards
- henrik
On 11/10/11 10:19 AM, Lars Briem wrote:
> Hello,
>
> at the moment I am maintaining an application with a swing GUI and no
> relation to eclipse or RCP. In this application I want to integrate an
> update mechanism to load different jar files from the web. These files
> have different versions and are updated very often.
>
> Coming from different eclipse plug-in projects, I thought that p2 is a
> good way to do that. So I tried to find some articles or tutorials about
> this, but everything I found is related to eclipse or RCP applications.
>
> Does anybody of you know how to use p2 outside of an eclipse/rcp
> application?
>
> Greetings
> Lars
|
|
|
|
|
Re: Using P2 outside eclipse/rcp application [message #756223 is a reply to message #756067] |
Fri, 11 November 2011 10:03  |
Eclipse User |
|
|
|
The problem is solved. In a meeting with the project owner we decided to use osgi. So I searched a bit in the internet and books and finally I implemented a small test application. The way until the application was finished was not always easy. I think a small tutorial for this case would be nice. If I can reserve some time in the next weeks I will create one and post it in the wiki.
|
|
|
Powered by
FUDForum. Page generated in 0.03611 seconds