txmap, StringBuilder b, String
strengthInh = true;
}
- if (brd.vsn.equals("?ext")) {
+ if ("?ext".equals(brd.vsn)) {
if (tx.getValueSet() != null)
System.out.println("Value set '"+tx.getValueSet()+"' at " + url + "#" + path + " not found");
else if (!tx.hasDescription())
@@ -2563,4 +2567,8 @@ public String experimentalWarning() {
return "";
}
}
+
+ public String adl() {
+ return ""+Utilities.escapeXml(sd.getUserString(UserDataNames.archetypeSource))+"
";
+ }
}
diff --git a/org.hl7.fhir.publisher.core/src/main/java/org/hl7/fhir/igtools/templates/Template.java b/org.hl7.fhir.publisher.core/src/main/java/org/hl7/fhir/igtools/templates/Template.java
index 9bd9d19ac..9bbdc1c85 100644
--- a/org.hl7.fhir.publisher.core/src/main/java/org/hl7/fhir/igtools/templates/Template.java
+++ b/org.hl7.fhir.publisher.core/src/main/java/org/hl7/fhir/igtools/templates/Template.java
@@ -87,6 +87,7 @@ public class Template {
private String templateReason;
private Set summaryRows = new HashSet<>();
private Set templateParams = new HashSet<>();
+ private boolean wantLog;
/** unpack the template into /template
*
@@ -96,11 +97,12 @@ public class Template {
*
* @throws IOException - only if the path is incorrect or the disk runs out of space
*/
- public Template(String rootDir, boolean canExecute, String templateThatCantExecute, String templateReason) throws IOException {
+ public Template(String rootDir, boolean canExecute, String templateThatCantExecute, String templateReason, boolean wantLog) throws IOException {
root = rootDir;
this.canExecute = canExecute;
this.templateThatCantExecute = templateThatCantExecute;
this.templateReason = templateReason;
+ this.wantLog = wantLog;
templateDir = Utilities.path(rootDir, "template");
@@ -126,7 +128,11 @@ public Template(String rootDir, boolean canExecute, String templateThatCantExecu
DefaultLogger consoleLogger = new DefaultLogger();
consoleLogger.setErrorPrintStream(System.err);
consoleLogger.setOutputPrintStream(System.out);
- consoleLogger.setMessageOutputLevel(Project.MSG_INFO);
+ if (wantLog) {
+ consoleLogger.setMessageOutputLevel(Project.MSG_INFO);
+ } else {
+ consoleLogger.setMessageOutputLevel(Project.MSG_ERR);
+ }
antProject.addBuildListener(consoleLogger);
antProject.setBasedir(root);
antProject.setProperty("ig.root", root);
diff --git a/org.hl7.fhir.publisher.core/src/main/java/org/hl7/fhir/igtools/templates/TemplateManager.java b/org.hl7.fhir.publisher.core/src/main/java/org/hl7/fhir/igtools/templates/TemplateManager.java
index 6c4dac1b0..c32c970dd 100644
--- a/org.hl7.fhir.publisher.core/src/main/java/org/hl7/fhir/igtools/templates/TemplateManager.java
+++ b/org.hl7.fhir.publisher.core/src/main/java/org/hl7/fhir/igtools/templates/TemplateManager.java
@@ -62,7 +62,7 @@ public TemplateManager(FilesystemPackageCacheManager pcm, ILoggingService logger
this.logger = logger;
}
- public Template loadTemplate(String template, String rootFolder, String packageId, boolean autoMode) throws FHIRException, IOException {
+ public Template loadTemplate(String template, String rootFolder, String packageId, boolean autoMode, boolean wantLog) throws FHIRException, IOException {
this.autoMode = autoMode;
String templateDir = Utilities.path(rootFolder, "template");
boolean inPlace = template.equals("#template");
@@ -84,7 +84,7 @@ public Template loadTemplate(String template, String rootFolder, String packageI
if (!canExecute) {
logger.logMessage("IG template '"+templateThatCantExecute+"' is not trusted. No scripts will be executed");
}
- return new Template(rootFolder, canExecute, templateThatCantExecute, templateReason);
+ return new Template(rootFolder, canExecute, templateThatCantExecute, templateReason, wantLog);
}
private void installTemplate(String template, String rootFolder, String templateDir, List scriptIds, ArrayList loadedIds, int level) throws FHIRException, IOException {
diff --git a/org.hl7.fhir.publisher.core/src/main/resources/log4j2.component.properties b/org.hl7.fhir.publisher.core/src/main/resources/log4j2.component.properties
new file mode 100644
index 000000000..51eb50a73
--- /dev/null
+++ b/org.hl7.fhir.publisher.core/src/main/resources/log4j2.component.properties
@@ -0,0 +1,4 @@
+# This forces log4j2 to use the included simple logger. One of our dependencies is using log4j2 for logging
+# (no idea which one) instead of slf4j, and complains when log4j2 is unavailable. This prevents that complaint from
+# appearing.
+log4j2.loggerContextFactory = org.apache.logging.log4j.simple.SimpleLoggerContextFactory
\ No newline at end of file
diff --git a/org.hl7.fhir.publisher.core/src/main/resources/logback.xml b/org.hl7.fhir.publisher.core/src/main/resources/logback.xml
index 1c8de9da3..0c5bc3c28 100644
--- a/org.hl7.fhir.publisher.core/src/main/resources/logback.xml
+++ b/org.hl7.fhir.publisher.core/src/main/resources/logback.xml
@@ -1,5 +1,5 @@
-
-
+
+
INFO
@@ -13,4 +13,6 @@
+
+
\ No newline at end of file
diff --git a/plot-ig-builder-auto.png b/plot-ig-builder-auto.png
index 7ddfa26c7..e667733d6 100644
Binary files a/plot-ig-builder-auto.png and b/plot-ig-builder-auto.png differ
diff --git a/pom.xml b/pom.xml
index 5593ba3f3..f5f98e6a9 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,11 +4,11 @@
org.hl7.fhir.publisher
org.hl7.fhir.publisher
- 1.8.5-SNAPSHOT
+ 1.8.7-SNAPSHOT
pom
- 6.5.3-SNAPSHOT
+ 6.5.5-SNAPSHOT
3.0.0-M5
5.2.1
1.18.32
@@ -20,7 +20,7 @@
11
11
11
- 1.2.13
+ 1.5.15
HL7 FHIR IG Publisher
@@ -304,6 +304,14 @@
plantuml-mit
1.2023.9