-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a 'wires' command to allow easy investigation of bundle wires #466
Conversation
efa0be2
to
3bd2a9d
Compare
bundles/org.eclipse.osgi/supplement/src/org/eclipse/osgi/util/ResourceFormatter.java
Outdated
Show resolved
Hide resolved
bundles/org.eclipse.osgi/supplement/src/org/eclipse/osgi/util/ResourceFormatter.java
Outdated
Show resolved
Hide resolved
bundles/org.eclipse.osgi/supplement/src/org/eclipse/osgi/util/ResourceFormatter.java
Outdated
Show resolved
Hide resolved
bundles/org.eclipse.osgi/supplement/src/org/eclipse/osgi/util/ResourceFormatter.java
Outdated
Show resolved
Hide resolved
bundles/org.eclipse.osgi/supplement/src/org/eclipse/osgi/util/ResourceFormatter.java
Outdated
Show resolved
Hide resolved
bundles/org.eclipse.osgi/supplement/src/org/eclipse/osgi/util/ResourceFormatter.java
Outdated
Show resolved
Hide resolved
3bd2a9d
to
a7d6e6b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, one change request. Can you update the package version for org.eclipse.osgi.container
?
a7d6e6b
to
65f344b
Compare
Done. |
bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/container/ModuleContainer.java
Outdated
Show resolved
Hide resolved
bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/container/ModuleContainer.java
Outdated
Show resolved
Hide resolved
bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/container/ModuleContainer.java
Outdated
Show resolved
Hide resolved
bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/container/ModuleContainer.java
Outdated
Show resolved
Hide resolved
bundles/org.eclipse.equinox.console/src/org/eclipse/equinox/console/commands/WireCommand.java
Outdated
Show resolved
Hide resolved
0ba16a1
to
f463b8e
Compare
Currently it is quite hard to find out if/why a certain bundle is using some other bundles or are used by others. This adds a new 'wires' command that when executed against a given bundle prints all wires that are used by the bundle and any wires it provides to other bundles. This results in a very powerful tool to analyze dependency problems and find out why a bundle is actually used. Co-authored-by: Titouan Vervack <tivervac@gmail.com>
f463b8e
to
232460e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! LGTM
Question : is this available from osgi console? If yes, could you provide an example command? Ideally this would be also mentioned in N&N. |
Yes it is a regular osgi console command
Given you know the id of the bundle simply type
and you get the output.
|
Thank you for this great and extremely useful addition! |
I can only second that. I often needed that in the past and had to find other less convenient ways. |
This improvement was gently sponsored by Sigasi. |
Currently it is quite hard to find out if/why a certain bundle is using some other bundles or are used by others.
This adds a new 'wires' command that when executed against a given bundle prints all wires that are used by the bundle and any wires it provides to other bundles. This results in a very powerful tool to analyze dependency problems and find out why a bundle is actually used.
An example output looks like this: