From 3025455d8bf8f9ac19d599aeb5b7a3b12c7fc5fd Mon Sep 17 00:00:00 2001 From: michaelpede Date: Tue, 26 Oct 2021 09:43:23 -0700 Subject: [PATCH] Path updates --- docker-compose.yml | 1 + .../org/reso/service/data/meta/builder/DefinitionBuilder.java | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 84085c0..6688b7d 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -15,6 +15,7 @@ services: - SQL_PASSWORD - SQL_CONNECTION_STR - SQL_DB_DRIVER + - CERT_REPORT_FILENAME volumes: - ./target:/usr/local/tomcat/webapps # depends_on: diff --git a/src/main/java/org/reso/service/data/meta/builder/DefinitionBuilder.java b/src/main/java/org/reso/service/data/meta/builder/DefinitionBuilder.java index 0c9856b..ac907c8 100644 --- a/src/main/java/org/reso/service/data/meta/builder/DefinitionBuilder.java +++ b/src/main/java/org/reso/service/data/meta/builder/DefinitionBuilder.java @@ -46,7 +46,9 @@ public class DefinitionBuilder { try { - reader = new JsonReader(new FileReader(fileName)); + String userDirectory = System.getProperty("user.dir"); + System.out.println(userDirectory); + reader = new JsonReader(new FileReader("webapps/"+fileName)); } catch (FileNotFoundException e) {