make getURIFromString compatible with windows path
@@ -135,6 +135,9 @@ private URI getURIFromString(String uriStr) throws RepositoryException {
if (uriStr.startsWith("/")) {
// only absolute paths are prepended with file scheme
uri = new URI("file://" + uriStr);
+ } else if (uriStr.contains(":\\")) {
+ //windows absolute path drive
+ uri = new URI("file:///" + uriStr.replaceAll("\\\\", "/"));
} else {
uri = new URI(uriStr);
}
