Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » P2 » Need help to get started with p2
Need help to get started with p2 [message #629608] Tue, 28 September 2010 21:34 Go to next message
Karl Weber is currently offline Karl WeberFriend
Messages: 63
Registered: September 2010
Member
Hi,

with all I read about p2, I think I have an idea of what this is all about.

However, I am missing a tutorial and at least one example about how to do things.

What I have in mind, and what should be possible with p2, is the following:

I am building an RCP application with an embedded sql database. The application will ship with an initial db-schema and some master data.

However, updates of the application might require (compatible) enhancements of the db-schema and modifications of the master data.

My idea is to describe these changes through one or more sql-scripts and to ship the application with an engine to execute such scripts.

Coming to p2: For all I understand, my application would need to provide a touchpoint that p2 can call such that the engine will execute the sql-script(s).

(1) Am I correct, i.e. can one in principle implement/provide such a touchpoint?

(2) If so, I would definitely need help about how to do it -- i.e. a tutorial, examples etc.

Any help is very wellcome.
Re: Need help to get started with p2 [message #629617 is a reply to message #629608] Tue, 28 September 2010 23:11 Go to previous message
Henrik Lindberg is currently offline Henrik LindbergFriend
Messages: 2509
Registered: July 2009
Senior Member
On 9/28/10 11:34 PM, karl.weber99@googlemail.com wrote:
> I am building an RCP application with an embedded sql database. The
> application will ship with an initial db-schema and some master data.
>
> However, updates of the application might require (compatible)
> enhancements of the db-schema and modifications of the master data.
>
> My idea is to describe these changes through one or more sql-scripts and
> to ship the application with an engine to execute such scripts.
> Coming to p2: For all I understand, my application would need to provide
> a touchpoint that p2 can call such that the engine will execute the
> sql-script(s).
>
> (1) Am I correct, i.e. can one in principle implement/provide such a
> touchpoint?
>
Yes.

> (2) If so, I would definitely need help about how to do it -- i.e. a
> tutorial, examples etc.
>
Look at the existing p2 native touchpoint, and the associated actions
(the native actions themselves are quite simple, but shows the sort of
things you need to think about - install/uninstall, rollback etc.).
A description can be found on the wiki -
http://wiki.eclipse.org/Equinox/p2/Engine/Touchpoint_Instruc tions

> Any help is very wellcome.

I also have interest in being able to run SQL scripts as part of a p2
installation - email me if you are interested in collaborating.

Regards
- henrik
Previous Topic:Query Bundles.info for installed plugin and version
Next Topic:Listing of installed plug-ins/features in Eclipse via CLI
Goto Forum:
  


Current Time: Thu Apr 18 22:50:06 GMT 2024

Powered by FUDForum. Page generated in 0.01631 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top