Skip to content

Getting a structured result why a bundle can not be resolved? #452

Answered by tjwatson
laeubi asked this question in Q&A
Discussion options

You must be logged in to vote

See https://github.com/eclipse-equinox/equinox/blob/master/bundles/org.eclipse.osgi/supplement/src/org/eclipse/osgi/report/resolution/ResolutionReport.java

And usage for the OSGi console diag command:

private ResolutionReport getResolutionReport(Bundle[] bundles) {
DiagReportListener reportListener = new DiagReportListener(bundles);
ServiceRegistration<ResolverHookFactory> hookReg = context.registerService(ResolverHookFactory.class,
reportListener, null);
try {
Bundle systemBundle = context.getBundle(Constants.S…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@laeubi
Comment options

laeubi Dec 20, 2023
Maintainer Author

Answer selected by laeubi
Comment options

laeubi
Dec 21, 2023
Maintainer Author

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants