Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-dev] How does Tycho plugin generates the dependency tree for both feature installation & uninstallation



On Thu, Jul 20, 2017 at 12:14 PM, Kasun Siyambalapitiya <kasunsi@xxxxxxxx> wrote:
Could you please let me know which one is doing the job, and is there anyway to extract out the dependency tree created from the p2 dependency resolver (aka Planner) for a given feature.

The job of doing dependency resolution from Tycho is a complex one which spreads on multiple layers (Tycho, p2, sat4j...) and multiple classes (AbstractArtifactDependencyWalker, org.eclipse.tycho.p2.resolver.P2ResolverImpl, org.eclipse.tycho.p2.util.resolution.ProjectorResolutionStrategy,  org.eclipse.equinox.internal.p2.director.SimplePlanner... and more).
At this point, I believe the best for you to understand the workflow is probably to start a build with a debugger enabled and to watch how execution happens by putting breakpoints here and there.

Cheers,

Back to the top