Skip to content

Commit 5299243

Browse files
authored
Exclude package-info.class from delegate module to avoid empty packages (#1343)
1 parent 416ee03 commit 5299243

File tree

1 file changed

+2
-0
lines changed
  • manager/src/main/java/io/aklivity/zilla/manager/internal/commands/install

1 file changed

+2
-0
lines changed

manager/src/main/java/io/aklivity/zilla/manager/internal/commands/install/ZpmInstall.java

+2
Original file line numberDiff line numberDiff line change
@@ -518,6 +518,7 @@ private void generateDelegate(
518518
Path moduleInfoPath = Paths.get(MODULE_INFO_CLASS_FILENAME);
519519
Path manifestPath = Paths.get("META-INF", "MANIFEST.MF");
520520
Path servicesPath = Paths.get("META-INF", "services");
521+
String packageInfoName = "package-info.class";
521522
Path excludedPackage = Paths.get("org", "eclipse", "yasson", "internal", "components");
522523
String excludedClass = "BeanManagerInstanceCreator";
523524
Set<String> entryNames = new HashSet<>();
@@ -532,6 +533,7 @@ private void generateDelegate(
532533
Path entryPath = Paths.get(entryName);
533534
if (entryPath.equals(moduleInfoPath) ||
534535
entryPath.equals(manifestPath) ||
536+
entryPath.endsWith(packageInfoName) ||
535537
(entryPath.startsWith(excludedPackage)) &&
536538
entryPath.getFileName().toString().startsWith(excludedClass))
537539
{

0 commit comments

Comments
 (0)