Skip to content

Commit

Permalink
fix: replace File.separator with forward-slash (#4221)
Browse files Browse the repository at this point in the history
  • Loading branch information
paullatzelsperger authored May 29, 2024
1 parent 7b02291 commit 329a24f
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public JsonLd createJsonLdService(ServiceExtensionContext context) {
Stream.of(
new JsonLdContext("odrl.jsonld", "http://www.w3.org/ns/odrl.jsonld"),
new JsonLdContext("dspace.jsonld", "https://w3id.org/dspace/2024/1/context.json")
).forEach(jsonLdContext -> getResourceUri("document" + File.separator + jsonLdContext.fileName())
).forEach(jsonLdContext -> getResourceUri("document/" + jsonLdContext.fileName())
.onSuccess(uri -> service.registerCachedDocument(jsonLdContext.url(), uri))
.onFailure(failure -> monitor.warning("Failed to register cached json-ld document: " + failure.getFailureDetail()))
);
Expand Down Expand Up @@ -131,6 +131,7 @@ private Result<URI> getResourceUri(String name) {
}
}

record JsonLdContext(String fileName, String url) { }
record JsonLdContext(String fileName, String url) {
}

}

0 comments on commit 329a24f

Please sign in to comment.