We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d624313 commit 7f38d5eCopy full SHA for 7f38d5e
src/main/java/org/mangorage/bootstrap/internal/JarHandler.java
@@ -69,6 +69,11 @@ private static String resolveModuleName(Path jarPath) {
69
// This is a proper JPMS module JAR
70
return ModuleFinder.of(jarPath).findAll().iterator().next().descriptor().name();
71
} else {
72
+ final var found = ModuleFinder.of(jarPath).findAll().stream().findAny();
73
+ if (found.isPresent()) {
74
+ return found.get().descriptor().name();
75
+ }
76
+
77
// Fall back to heuristic based on filename (best effort)
78
String filename = jarPath.getFileName().toString();
79
return filename.replaceAll("-[\\d\\.]+.*\\.jar$", "").replaceAll("\\.jar$", "");
0 commit comments