Skip to content

Commit

Permalink
Merge pull request #6671 from luiseufrasio/FISH-8044-community-contri…
Browse files Browse the repository at this point in the history
…bution-avoid-file-system-not-found-behind-spring-boot-p6

FISH-8044 : adding jar: packages into the classpath
  • Loading branch information
luiseufrasio authored and Pandrex247 committed May 2, 2024
1 parent cca5a33 commit f51506a
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,11 @@ private static synchronized String getModulesClasspath(ServiceLocator habitat) {
} else if (uriString.startsWith("jar:")) {
// In Spring Boot application, the URIs are pointing to embedded JARs in a JAR,
// resulting in a FileSystemNotFoundException when parsed with Paths.get(...)
deplLogger.log(Level.INFO, "The URI has been ignored: {0}", uriString);
int index = uriString.indexOf("!");
String jarPath = index == -1 ?
uriString.substring("jar:".length()) : uriString.substring("jar:".length(), index);
tmpString.append(jarPath);
tmpString.append(File.pathSeparator);
} else {
try {
tmpString.append(Paths.get(uri).toString());
Expand Down

0 comments on commit f51506a

Please sign in to comment.