Skip to content

Commit

Permalink
Don't use rootUri for the moment to avoid breaking build (see #206)
Browse files Browse the repository at this point in the history
  • Loading branch information
angelozerr committed Nov 8, 2018
1 parent a1b91c8 commit c187dc8
Showing 1 changed file with 3 additions and 5 deletions.
Expand Up @@ -92,14 +92,15 @@ public void setCatalogs(String[] catalogs) {
}

private String expandSystemId(String path) {
try {
/*try {
if (rootUri == null) {
return path;
}
return XMLEntityManager.expandSystemId(path, rootUri, false);
} catch (MalformedURIException e) {
return path;
}
}*/
return path;
}

/**
Expand All @@ -110,9 +111,6 @@ private String expandSystemId(String path) {
*/
private static boolean isXMLCatalogFileValid(String catalogFile) {
try {
if (new File(catalogFile).exists()) {
return true;
}
return new File(new URI(catalogFile).getPath()).exists();
} catch (URISyntaxException e) {
return new File(catalogFile).exists();
Expand Down

0 comments on commit c187dc8

Please sign in to comment.