From 6defa62f4e3a04f71936859a20cc723d6ada4cd5 Mon Sep 17 00:00:00 2001 From: Grahame Grieve Date: Thu, 5 Dec 2019 04:10:39 +1100 Subject: [PATCH] fix bug where IG publisher ignoring content of pub-pack --- .../java/org/hl7/fhir/r5/context/SimpleWorkerContext.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/context/SimpleWorkerContext.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/context/SimpleWorkerContext.java index 72f38d7c2..d7de321d2 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/context/SimpleWorkerContext.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/context/SimpleWorkerContext.java @@ -71,6 +71,7 @@ import org.hl7.fhir.r5.utils.INarrativeGenerator; import org.hl7.fhir.r5.utils.IResourceValidator; import org.hl7.fhir.r5.utils.NarrativeGenerator; import org.hl7.fhir.utilities.CSFileInputStream; +import org.hl7.fhir.utilities.TextFile; import org.hl7.fhir.utilities.Utilities; import org.hl7.fhir.utilities.cache.NpmPackage; import org.hl7.fhir.utilities.validation.ValidationMessage; @@ -292,7 +293,9 @@ public class SimpleWorkerContext extends BaseWorkerContext implements IWorkerCon for (String s : pi.listResources(types)) { loadDefinitionItem(s, pi.load("package", s), loader); } - // todogg + for (String s : pi.list("other")) { + binaries.put(s, TextFile.streamToBytes(pi.load("other", s))); + } version = pi.version(); }