stevedlawrence commented on code in PR #1065:
URL: https://github.com/apache/daffodil/pull/1065#discussion_r1529104418


##########
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:
   So the URI was something like `file://path/to/foo.jar!/foo.dfdl.xsd` but 
with windows paths? I don't think that is a valid file path, since anything 
opening that is going to look for a file called `foo.dfdl.xsd" in a directory 
called `foo.jar!`, I think. I wonder if we had a bug somewhere else that lead 
to that invalid file scheme URI?



-- 
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]

Reply via email to