[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [p2-dev] P2: wich IUs to install?

You can also take a look at the tests (org.eclipse.equinox.p2.tests) that uses this class.

Inactive hide details for Ian Bull ---03/06/2009 10:29:43 PM---You could like use the slicer for this. Something like this:Ian Bull ---03/06/2009 10:29:43 PM---You could like use the slicer for this. Something like this:


From:

Ian Bull <irbull@xxxxxxxxxxxxxxxxx>

To:

P2 developer discussions <p2-dev@xxxxxxxxxxx>

Date:

03/06/2009 10:29 PM

Subject:

Re: [p2-dev] P2: wich IUs to install?




You could like use the slicer for this.

Something like this:
PermissiveSlicer slicer = new PermissiveSlicer(getCompositeMetadataRepository(), slicingOptions.getFilter(), slicingOptions.includeOptionalDependencies(), slicingOptions.isEverythingGreedy(), slicingOptions.forceFilterTo(), slicingOptions.considerStrictDependencyOnly());

return slicer.slice((IInstallableUnit[]) sourceIUs.toArray(new IInstallableUnit[sourceIUs.size()]), monitor);

In this case you are creating a permissive slicer and then querying it for the "slice" given a set of root (or source in this case) IUs.

Checkout the mirror application in repository tools (it is very new), it does this.

cheers,
ian


On Fri, Mar 6, 2009 at 1:11 PM, Alessandro Mottadelli <amottadelli@xxxxxxxx> wrote:


--
R. Ian Bull | EclipseSource Victoria | +1 250 477 7484

http://eclipsesource.com | http://twitter.com/eclipsesource_______________________________________________
p2-dev mailing list
p2-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/p2-dev


GIF image

GIF image