Skip to content

Experimental: BndRunAnalyzer context menu #6589

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

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

chrisrueger
Copy link
Contributor

@chrisrueger chrisrueger commented May 4, 2025

  • adds a right-click context menu for .bndrun files "Analze Bndrun"
  • currently it outputs: unreferenced Bundles (Bundle Symbolic Names over all repositories, which are not in -runbundles, -buildpath, -testpath, or ${repo;...} references e.g. in -includeresources)

It considers:

  • all repositories which are OSGi Repositories
  • references in a set of selected .bndrun files
  • references in all projects including sub-bundles
  • references in -includeresource via the ${repo;...} macro

The result is a text dialog where you can see and copy paste it, like this:

  • Right-Click on a .bndrun file
image image

Why?

We have a historically grown central.mvn (MavenBndRepository) and I wanted to find out entries which are not used, which could be removed.

It is based on a forum question some time ago. So basically I tried adding this as a feature now.

I used our own project and did a few samples which look promising.

Feedback welcome.

@chrisrueger chrisrueger force-pushed the find-unreferenced-repo-entries branch 2 times, most recently from b29408b to 78bdfb8 Compare May 5, 2025 06:21
- adds a right-click context menu for .bndrun files "Analze Bndrun"
- currently it outputs: unreferenced Bundles (Bundle Symbolic Names over all repositories, which are not in -runbundles)

- use effect BndEditModel (needed for bndruns which -include: other.bndrun files)
- refactor and use async Job
- refactor to support multiple sel. .bndrun files
- handle subProjects
- add Result class

Signed-off-by: Christoph Rueger <[email protected]>
@chrisrueger chrisrueger force-pushed the find-unreferenced-repo-entries branch from 78bdfb8 to 8ff8f06 Compare May 5, 2025 06:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant