From 39ad8d7301d591f350ef52b2f6d7a6799c53d168 Mon Sep 17 00:00:00 2001 From: AnjanaSenanayake Date: Thu, 7 Dec 2023 10:11:33 +0530 Subject: [PATCH] Add fix for missing license year datatypes.bal Related Issue: https://github.com/wso2-enterprise/open-healthcare/issues/1465 --- .../packagegen/tool/templategen/DatatypeTemplateGenerator.java | 1 + 1 file changed, 1 insertion(+) diff --git a/native/fhir-to-bal-lib/src/main/java/org/wso2/healthcare/fhir/ballerina/packagegen/tool/templategen/DatatypeTemplateGenerator.java b/native/fhir-to-bal-lib/src/main/java/org/wso2/healthcare/fhir/ballerina/packagegen/tool/templategen/DatatypeTemplateGenerator.java index 54bd8c0..dbde69b 100644 --- a/native/fhir-to-bal-lib/src/main/java/org/wso2/healthcare/fhir/ballerina/packagegen/tool/templategen/DatatypeTemplateGenerator.java +++ b/native/fhir-to-bal-lib/src/main/java/org/wso2/healthcare/fhir/ballerina/packagegen/tool/templategen/DatatypeTemplateGenerator.java @@ -60,6 +60,7 @@ public void generate(ToolContext toolContext, Map generatorPrope List importList = Collections.singletonList(packageTemplateContext.getBasePackageName()); TemplateContext templateContext = this.getNewTemplateContext(); templateContext.setProperty("util", GeneratorUtils.getInstance()); + templateContext.setProperty("licenseYear", ToolConstants.LICENSE_YEAR); templateContext.setProperty("datatypeContext", datatypeContexts); templateContext.setProperty("imports", importList);