olabusayoT commented on code in PR #1065:
URL: https://github.com/apache/daffodil/pull/1065#discussion_r1529086421
##########
daffodil-lib/src/main/scala/org/apache/daffodil/lib/util/Misc.scala:
##########
@@ -708,4 +708,19 @@ object Misc {
}
Some(res)
}
+
+ /**
+ * Strip the part of the path matching the classpath from the uri
+ * @param uriString
+ * @return
+ */
+ def stripJarPrefix(uriString: String): String = {
+ val withoutJar = if (!isNullOrBlank(uriString)) {
+ uriString.split("\\.jar!").last
+ } else {
+ uriString
+ }
+ withoutJar
+ }
Review Comment:
In windows, we ran into some places where a jar uri had a "file" scheme, so
I'm going to treat both schemes the same
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]