Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » B3 » Using p2 model to generate a p2 site
Using p2 model to generate a p2 site [message #521750] Thu, 18 March 2010 16:33 Go to next message
Henrik Lindberg is currently offline Henrik Lindberg
Messages: 2500
Registered: July 2009
Senior Member
Hi,
I am about to start implementing p2 publishing support in b3 engine.
My approach is to use the p2 ecore model in the aggregator, and hoping
that there is code there that I can just call.

Two questions...
- The p2 model is nested at the moment. Should we break it out into its
own bundle?

- Once I have populated a p2 model, how to I write it out as a "p2 repo
on disk" ?

- henrik
Re: Using p2 model to generate a p2 site [message #522900 is a reply to message #521750] Wed, 24 March 2010 12:47 Go to previous messageGo to next message
Filip Hrbek is currently offline Filip Hrbek
Messages: 233
Registered: July 2009
Senior Member
Sorry for late answer. Comments inside. I can help with implementing the changes if you like.

Filip

Henrik Lindberg wrote:
> Hi,
> I am about to start implementing p2 publishing support in b3 engine.
> My approach is to use the p2 ecore model in the aggregator, and hoping
> that there is code there that I can just call.
>
> Two questions...
> - The p2 model is nested at the moment. Should we break it out into its
> own bundle?
>

Yes, I think that it would be nice to share one common p2 model for everything in b3.


> - Once I have populated a p2 model, how to I write it out as a "p2 repo
> on disk" ?

Currently we can only read a p2 repository into the model. We have "importToModel" methods which scan the original p2 structure and copy it into the EMF model. Perhaps we need to write inverse methods to push the model into a native p2 repository instance to be able to store it.
Re: Using p2 model to generate a p2 site [message #523010 is a reply to message #522900] Wed, 24 March 2010 13:44 Go to previous messageGo to next message
Henrik Lindberg is currently offline Henrik Lindberg
Messages: 2500
Registered: July 2009
Senior Member
On 3/24/10 1:47 PM, Filip Hrbek wrote:
> Sorry for late answer. Comments inside. I can help with implementing
> the changes if you like.
>
> Filip
>
> Henrik Lindberg wrote:
>> Hi,
>> I am about to start implementing p2 publishing support in b3 engine.
>> My approach is to use the p2 ecore model in the aggregator, and hoping
>> that there is code there that I can just call.
>>
>> Two questions...
>> - The p2 model is nested at the moment. Should we break it out into its
>> own bundle?
>>
>
> Yes, I think that it would be nice to share one common p2 model for
> everything in b3.
>
I logged this issue:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=306979

>
>> - Once I have populated a p2 model, how to I write it out as a "p2 repo
>> on disk" ?
>
> Currently we can only read a p2 repository into the model. We have
> "importToModel" methods which scan the original p2 structure and copy it
> into the EMF model. Perhaps we need to write inverse methods to push the
> model into a native p2 repository instance to be able to store it.
....and this issue
https://bugs.eclipse.org/bugs/show_bug.cgi?id=306980

- henrik
Re: Using p2 model to generate a p2 site [message #603463 is a reply to message #521750] Wed, 24 March 2010 12:47 Go to previous messageGo to next message
Filip Hrbek is currently offline Filip Hrbek
Messages: 233
Registered: July 2009
Senior Member
Sorry for late answer. Comments inside. I can help with implementing the changes if you like.

Filip

Henrik Lindberg wrote:
> Hi,
> I am about to start implementing p2 publishing support in b3 engine.
> My approach is to use the p2 ecore model in the aggregator, and hoping
> that there is code there that I can just call.
>
> Two questions...
> - The p2 model is nested at the moment. Should we break it out into its
> own bundle?
>

Yes, I think that it would be nice to share one common p2 model for everything in b3.


> - Once I have populated a p2 model, how to I write it out as a "p2 repo
> on disk" ?

Currently we can only read a p2 repository into the model. We have "importToModel" methods which scan the original p2 structure and copy it into the EMF model. Perhaps we need to write inverse methods to push the model into a native p2 repository instance to be able to store it.
Re: Using p2 model to generate a p2 site [message #603469 is a reply to message #522900] Wed, 24 March 2010 18:34 Go to previous message
Henrik Lindberg is currently offline Henrik Lindberg
Messages: 2500
Registered: July 2009
Senior Member
On 3/24/10 1:47 PM, Filip Hrbek wrote:
> Sorry for late answer. Comments inside. I can help with implementing
> the changes if you like.
>
> Filip
>
> Henrik Lindberg wrote:
>> Hi,
>> I am about to start implementing p2 publishing support in b3 engine.
>> My approach is to use the p2 ecore model in the aggregator, and hoping
>> that there is code there that I can just call.
>>
>> Two questions...
>> - The p2 model is nested at the moment. Should we break it out into its
>> own bundle?
>>
>
> Yes, I think that it would be nice to share one common p2 model for
> everything in b3.
>
I logged this issue:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=306979

>
>> - Once I have populated a p2 model, how to I write it out as a "p2 repo
>> on disk" ?
>
> Currently we can only read a p2 repository into the model. We have
> "importToModel" methods which scan the original p2 structure and copy it
> into the EMF model. Perhaps we need to write inverse methods to push the
> model into a native p2 repository instance to be able to store it.
....and this issue
https://bugs.eclipse.org/bugs/show_bug.cgi?id=306980

- henrik
Previous Topic:URL of update site is worng
Next Topic:newversion of b3 book uploaded
Goto Forum:
  


Current Time: Tue Oct 21 10:31:41 GMT 2014

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

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