From 6f4ed989d451fc2fad426ba69b85a11eb7de5b6f Mon Sep 17 00:00:00 2001 From: pasqualespica <36746022+pasqualespica@users.noreply.github.com> Date: Fri, 15 Sep 2023 16:09:05 +0200 Subject: [PATCH] stub info --- .../pagopa/receipt/pdf/generator/Info.java | 24 ++++++++++--------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/src/main/java/it/gov/pagopa/receipt/pdf/generator/Info.java b/src/main/java/it/gov/pagopa/receipt/pdf/generator/Info.java index 094b94a2..fd4b0d43 100644 --- a/src/main/java/it/gov/pagopa/receipt/pdf/generator/Info.java +++ b/src/main/java/it/gov/pagopa/receipt/pdf/generator/Info.java @@ -44,16 +44,18 @@ public HttpResponseMessage run ( public synchronized AppInfo getInfo() { String version = null; String name = null; - try (InputStream inputStream = this.getClass().getClassLoader().getResourceAsStream("application.properties")) { - Properties properties = new Properties(); - if (inputStream != null) { - properties.load(inputStream); - version = properties.getProperty("version", null); - name = properties.getProperty("name", null); - } - } catch (Exception e) { - logger.error("Impossible to retrieve information from pom.properties file.", e); - } - return AppInfo.builder().version(version).environment("azure-fn").name(name).build(); + // try (InputStream inputStream = this.getClass().getClassLoader().getResourceAsStream("application.properties")) { + // Properties properties = new Properties(); + // if (inputStream != null) { + // properties.load(inputStream); + // version = properties.getProperty("version", null); + // name = properties.getProperty("name", null); + // } + // } catch (Exception e) { + // logger.error("Impossible to retrieve information from pom.properties file.", e); + // } + // return AppInfo.builder().version(version).environment("azure-fn").name(name).build(); + return AppInfo.builder().version("fake").environment("fake").name("name").build(); + } } \ No newline at end of file