Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » [p2] List IUs of installation plan
[p2] List IUs of installation plan [message #1106775] Wed, 11 September 2013 10:27 Go to next message
Mickael Istria is currently offline Mickael Istria
Messages: 741
Registered: July 2009
Location: Grenoble, France
Senior Member
Hi,

I'd like to do some optimization of a big p2 repository mirroring much
stuff from Eclipse.org. I'm pretty sure some of this stuff is useless,
so I'd like to clean it and keep only what's useful.

So I'm wondering whether there is a tool that takes as input one or
several p2 repo, a set of root IUs and then lists all the IU that will
be installed (so it would also list all dependencies).

I'm aware this is something we can do with p2 director on a very clean
Eclipse Platform, but that would download all the artifacts, which is
time-consuming and which doesn't improve the quality of the results.

Does anyone know/have something of this kind available?
Thanks in advance.
--
Mickael Istria
My job: http://www.jboss.org/tools
My blog: http://mickaelistria.wordpress.com
My Tweets: http://twitter.com/mickaelistria
Re: [p2] List IUs of installation plan [message #1106782 is a reply to message #1106775] Wed, 11 September 2013 10:40 Go to previous messageGo to next message
Pascal Rapicault is currently offline Pascal Rapicault
Messages: 290
Registered: July 2009
Location: Ottawa
Senior Member
The closest thing there is at this point is the p2.mirror ant task which provides a mechanism to "slice" the content of the repo (see slicing option at
http://help.eclipse.org/kepler/index.jsp?topic=%2Forg.eclipse.pde.doc.user%2Ftasks%2Fpde_p2_productbuilds.htm&resultof=%22p2.mirror%22)

Note that slicing is *not* resolving. Slicing "roughly" follows the dependencies from a given entry point. The result may still contain duplicates but most of the time this is good enough.

Let me know what you think.
Re: [p2] List IUs of installation plan [message #1107362 is a reply to message #1106782] Thu, 12 September 2013 05:37 Go to previous messageGo to next message
Mickael Istria is currently offline Mickael Istria
Messages: 741
Registered: July 2009
Location: Grenoble, France
Senior Member
IMO this approach is equivalent to getting a minimal Eclipse product
(without anything but Equinox and p2), use p2 director to install into
it, and see what's the output.
The drawback I see is that it will spend (much) time downloading
artifacts. Is there an option to mirror only metadata transitively?
--
Mickael Istria
My job: http://www.jboss.org/tools
My blog: http://mickaelistria.wordpress.com
My Tweets: http://twitter.com/mickaelistria
Re: [p2] List IUs of installation plan [message #1107552 is a reply to message #1107362] Thu, 12 September 2013 11:30 Go to previous messageGo to next message
Pascal Rapicault is currently offline Pascal Rapicault
Messages: 290
Registered: July 2009
Location: Ottawa
Senior Member
You last comment confuses me. It is true that running the slicer is equivalent to installing your software on top of a minimal p2/platform, except that then you don't have to gather the list of IUs manually and do some post processing afterward.

I assume that in the end you want a metadata repo that contains only the metadata necessary to install your root IUs right?

At this point it does not look like the mirror task allows to bypass the download but this should be pretty straightforward to add.


Re: [p2] List IUs of installation plan [message #1108310 is a reply to message #1107552] Fri, 13 September 2013 13:14 Go to previous message
Mickael Istria is currently offline Mickael Istria
Messages: 741
Registered: July 2009
Location: Grenoble, France
Senior Member
On 09/12/2013 05:30 PM, Pascal Rapicault wrote:
> You last comment confuses me. It is true that running the slicer is
> equivalent to installing your software on top of a minimal p2/platform,
> except that then you don't have to gather the list of IUs manually and
> do some post processing afterward.

That's true. This requires to know and maintain the list of root IUs.
Or to use UI and the "Select all" button, but then the "host" product
wouldn't be that minimal...

> I assume that in the end you want a metadata repo that contains only the
> metadata necessary to install your root IUs right?

Yes, that's what I want.

> At this point it does not look like the mirror task allows to bypass the
> download but this should be pretty straightforward to add.

Ok. Should I go for a feature request?
--
Mickael Istria
My job: http://www.jboss.org/tools
My blog: http://mickaelistria.wordpress.com
My Tweets: http://twitter.com/mickaelistria
Previous Topic:Loading class from extension point
Next Topic:Running p2 director and p2 mirrorapp in commandline
Goto Forum:
  


Current Time: Sat Aug 23 01:42:24 EDT 2014

Powered by FUDForum. Page generated in 0.03314 seconds