From 8d850be064bff44a66418d237a2fb733441dc079 Mon Sep 17 00:00:00 2001 From: Bruno Thomas Date: Thu, 26 Mar 2020 18:26:31 +0000 Subject: [PATCH] [ICIJ/datashare#360] fix jar name with -all --- .../src/main/java/org/icij/datashare/web/RootResource.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datashare-app/src/main/java/org/icij/datashare/web/RootResource.java b/datashare-app/src/main/java/org/icij/datashare/web/RootResource.java index 095002ea1..d0b24696e 100644 --- a/datashare-app/src/main/java/org/icij/datashare/web/RootResource.java +++ b/datashare-app/src/main/java/org/icij/datashare/web/RootResource.java @@ -42,7 +42,7 @@ public String getRoot(Context context) throws IOException { String content; if (context.env().classPath() && !index.toFile().isFile()) { StringWriter writer = new StringWriter(); - copy(getClass().getResourceAsStream("/" + Paths.get(context.env().appFolder(), INDEX_HTML).toString()), writer, Charset.defaultCharset()); + copy(getClass().getResourceAsStream("/" + context.env().appFolder() + "/" + INDEX_HTML), writer, Charset.defaultCharset()); content = writer.toString(); } else { content = new String(Files.readAllBytes(index), Charset.defaultCharset());