Package org.drools.util
Class JarUtils
java.lang.Object
org.drools.util.JarUtils
Utility to access jar files
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringnormalizeSpringBootResourceUrlPath(String resourceUrlPath) Spring Boot executable jar contains path "BOOT-INF/classes/org/example/MyClass.class" in the jar file.
-
Method Details
-
normalizeSpringBootResourceUrlPath
Spring Boot executable jar contains path "BOOT-INF/classes/org/example/MyClass.class" in the jar file. However, when resource urls are acquired by spring boot classloader's getResources(), "!" is added to the path prefix as a "nest" separator, resulting in "BOOT-INF/classes!/org/example/MyClass.class". This method removes the "!" from the path to make it consistent with the actual path in the jar file.- Parameters:
resourceUrlPath- resource url path- Returns:
- normalized resource url path
-