From a2757d59ec1e7fa8c66ec9e15746da683d409411 Mon Sep 17 00:00:00 2001 From: Paul Latzelsperger Date: Wed, 29 May 2024 09:40:04 +0200 Subject: [PATCH] fix: replace File.separator with forward-slash --- .../main/java/org/eclipse/edc/jsonld/JsonLdExtension.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/extensions/common/json-ld/src/main/java/org/eclipse/edc/jsonld/JsonLdExtension.java b/extensions/common/json-ld/src/main/java/org/eclipse/edc/jsonld/JsonLdExtension.java index 3ac22301498..d7aebcea4f8 100644 --- a/extensions/common/json-ld/src/main/java/org/eclipse/edc/jsonld/JsonLdExtension.java +++ b/extensions/common/json-ld/src/main/java/org/eclipse/edc/jsonld/JsonLdExtension.java @@ -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())) ); @@ -131,6 +131,7 @@ private Result getResourceUri(String name) { } } - record JsonLdContext(String fileName, String url) { } + record JsonLdContext(String fileName, String url) { + } }