From 9e2c9d421af6eb9cc86bff64c561010c54ffece4 Mon Sep 17 00:00:00 2001 From: adongare Date: Tue, 12 Mar 2024 13:25:16 -0400 Subject: [PATCH] MAT-6911 add template path debug statements --- .../gov/cms/madie/hqmf/QDMTemplateProcessorFactory.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main/java/gov/cms/madie/hqmf/QDMTemplateProcessorFactory.java b/src/main/java/gov/cms/madie/hqmf/QDMTemplateProcessorFactory.java index cf56869..a457fb7 100644 --- a/src/main/java/gov/cms/madie/hqmf/QDMTemplateProcessorFactory.java +++ b/src/main/java/gov/cms/madie/hqmf/QDMTemplateProcessorFactory.java @@ -1,5 +1,7 @@ package gov.cms.madie.hqmf; +import lombok.extern.slf4j.Slf4j; + import java.io.File; import java.net.URISyntaxException; import java.net.URL; @@ -11,14 +13,17 @@ * no HQMF exists, then MAT will generate the HQMF during the Export operation and save it to the * table. Older versions of the Generators are kept to ensure the HQMF can be generated on-demand. */ +@Slf4j public class QDMTemplateProcessorFactory { public static XmlProcessor getTemplateProcessor(double qdmVersion) { - String fileName = "templates"+ File.separator + "hqmf" + File.separator + "qdm_v5_6_datatype_templates.xml"; + String fileName = "templates/hqmf/qdm_v5_6_datatype_templates.xml"; URL templateFileUrl = QDMTemplateProcessorFactory.class.getClassLoader().getResource(fileName); + log.info("Template file path: " + templateFileUrl.getPath()); File templateFile = null; try { + log.info("Template file uri: " + templateFileUrl.toURI()); templateFile = new File(templateFileUrl.toURI()); } catch (URISyntaxException e) { e.printStackTrace();