Skip to content

Commit 8b827b0

Browse files
nburnwal09merks
authored andcommitted
Add N&N entry for empty package removal from manifest
Adds entry for automatic removal of empty packages from Export-Package header Covers both refactoring (moving classes) and deletion scenarios References PRs #2136 and #2292
1 parent 8e2a74c commit 8b827b0

3 files changed

Lines changed: 19 additions & 0 deletions

File tree

61.8 MB
Loading
54.1 MB
Loading

news/4.41/pde.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,25 @@ A special thanks to everyone who [contributed to PDE](acknowledgements.md#plug-i
1515
## PDE Compiler
1616
-->
1717

18+
## Editors
19+
20+
### Empty Package Removed from Manifest
21+
<!-- https://github.com/eclipse-pde/eclipse.pde/pull/2136 -->
22+
<!-- https://github.com/eclipse-pde/eclipse.pde/pull/2292 -->
23+
<details>
24+
<summary>Contributors</summary>
25+
26+
- [Neha Burnwal ](https://github.com/nburnwal09)
27+
28+
</details>
29+
30+
When a class is moved and the source package becomes empty, or when all classes in a package are deleted, the package is now automatically removed from the `Export-Package` header in `MANIFEST.MF` if it was previously exported.
31+
This prevents the manifest from listing packages that no longer contain any resources and ensures that empty packages are cleaned up automatically.
32+
33+
![Empty package removed after moving a class](images/handle_movement.gif)
34+
35+
![Empty package removed after deleting classes](images/handle_deletion.gif)
36+
1837
## Views and Dialogs
1938

2039
### Enable OSGi Console Option in Launch Configurations

0 commit comments

Comments
 (0)