Skip to content

Include fragments when computing dependencies for Extensible-API bundles#1853

Merged
laeubi merged 1 commit intoeclipse-pde:masterfrom
laeubi:consider_ext_api_when_comp_dep
Jul 7, 2025
Merged

Include fragments when computing dependencies for Extensible-API bundles#1853
laeubi merged 1 commit intoeclipse-pde:masterfrom
laeubi:consider_ext_api_when_comp_dep

Conversation

@laeubi
Copy link
Copy Markdown
Contributor

@laeubi laeubi commented Jul 7, 2025

Currently there is an option to either include all fragments, or only non-test fragments. But there is some kind of special bundles (like SWT) that declare a custom 'Eclipse-ExtensibleAPI' header, these are handled special in the way that PDE attaches their fragments to the classpath of projects requiring these. This behavior is currently not reflected when computing required dependencies leading to ClassNotFoundException when launching them.

This now adds another check, that if such special bundle is found its fragments are considered when it is not a test bundle project.

@laeubi laeubi requested a review from HannesWell July 7, 2025 09:36
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jul 7, 2025

Test Results

   765 files  ±0     765 suites  ±0   1h 3m 40s ⏱️ + 8m 5s
 3 611 tests ±0   3 535 ✅ ±0   76 💤 ±0  0 ❌ ±0 
10 833 runs  ±0  10 602 ✅ ±0  231 💤 ±0  0 ❌ ±0 

Results for commit cd068ba. ± Comparison against base commit f6d83fd.

♻️ This comment has been updated with latest results.

Currently there is an option to either include all fragments, or only
non-test fragments. But there is some kind of special bundles (like SWT)
that declare a custom 'Eclipse-ExtensibleAPI' header, these are handled
special in the way that PDE attaches their fragments to the classpath of
projects requiring these. This behavior is currently not reflected when
computing required dependencies leading to ClassNotFoundException when
launching them.

This now adds another check, that if such special bundle is found its
fragments are considered when it is not a test bundle project.
@laeubi laeubi force-pushed the consider_ext_api_when_comp_dep branch from 19f87a5 to cd068ba Compare July 7, 2025 10:26
@laeubi laeubi merged commit 0cfe77d into eclipse-pde:master Jul 7, 2025
12 checks passed
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.

2 participants