Skip to content

Commit 5a74bd6

Browse files
committed
fix: added DELETE entries to final sorted bundle
1 parent 693ad95 commit 5a74bd6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

dsf-maven/dsf-maven-plugin/src/main/java/dev/dsf/maven/bundle/BundleGenerator.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,10 @@ private void sortBundleEntries(Bundle bundle)
222222

223223
resources.stream().map(EntryAndLabel::label).forEach(l -> logger.debug(l));
224224

225-
bundle.setEntry(resources.stream().map(EntryAndLabel::entry).toList());
225+
List<BundleEntryComponent> finalEntries = new ArrayList<>(
226+
bundle.getEntry().stream().filter(Predicate.not(BundleEntryComponent::hasResource)).toList());
227+
finalEntries.addAll(resources.stream().map(EntryAndLabel::entry).toList());
228+
bundle.setEntry(finalEntries);
226229
}
227230

228231
private static record EntryAndLabel(BundleEntryComponent entry, String label)

0 commit comments

Comments
 (0)