From b6b810ce29ccb66f63947e503a2da7d7209dcf10 Mon Sep 17 00:00:00 2001 From: Grahame Grieve Date: Mon, 10 Aug 2020 15:54:40 +1000 Subject: [PATCH] fix for all packages release with wrong urls --- .../fhir/utilities/cache/PackageHacker.java | 39 ++++++++++++++----- 1 file changed, 30 insertions(+), 9 deletions(-) diff --git a/org.hl7.fhir.utilities/src/main/java/org/hl7/fhir/utilities/cache/PackageHacker.java b/org.hl7.fhir.utilities/src/main/java/org/hl7/fhir/utilities/cache/PackageHacker.java index 7a7705d9b..d7db2cb5f 100644 --- a/org.hl7.fhir.utilities/src/main/java/org/hl7/fhir/utilities/cache/PackageHacker.java +++ b/org.hl7.fhir.utilities/src/main/java/org/hl7/fhir/utilities/cache/PackageHacker.java @@ -116,15 +116,36 @@ public class PackageHacker { public static String fixPackageUrl(String webref) { // workaround for past publishing problems - if (webref.equals("file://C:\\GitHub\\hl7.fhir.us.qicore#4.0.0\\output")) { - return "http://hl7.org/fhir/us/qicore/STU4"; - } - if (webref.equals("file://C:\\GitHub\\hl7.fhir.us.cqfmeasures#2.0.0\\output")) { - return "http://hl7.org/fhir/us/cqfmeasures/STU2"; - } - if (webref.equals("file://C:\\GitHub\\hl7.fhir.uv.ips#1.0.0\\output")) { - return "http://hl7.org/fhir/uv/ips/STU1"; - } + + if ("file://C:\\GitHub\\hl7.fhir.us.breast-radiology#0.2.0\\output".equals(webref)) { return "http://hl7.org/fhir/us/breast-radiology/2020May"; } + if ("file://C:\\GitHub\\hl7.fhir.us.dme-orders#0.1.1\\output".equals(webref)) { return "http://hl7.org/fhir/us/dme-orders/2020May"; } + if ("file://C:\\GitHub\\hl7.fhir.us.bser#1.0.0\\output".equals(webref)) { return "http://hl7.org/fhir/us/bser"; } + if ("file://C:\\GitHub\\hl7.fhir.us.bser#1.0.0\\output".equals(webref)) { return "http://hl7.org/fhir/us/bser/STU1"; } + if ("file://C:\\GitHub\\hl7.fhir.us.carin-bb#0.1.0\\output".equals(webref)) { return "http://hl7.org/fhir/us/carin-bb/2020Feb"; } + if ("file://C:\\GitHub\\hl7.fhir.us.carin-rtpbc#0.1.0\\output".equals(webref)) { return "http://hl7.org/fhir/us/carin-rtpbc/2020Feb"; } + if ("file://C:\\GitHub\\hl7.fhir.us.cqfmeasures#2.0.0\\output".equals(webref)) { return "http://hl7.org/fhir/us/cqfmeasures"; } + if ("file://C:\\GitHub\\hl7.fhir.us.cqfmeasures#1.1.0\\output".equals(webref)) { return "http://hl7.org/fhir/us/cqfmeasures/2020Feb"; } + if ("file://C:\\GitHub\\hl7.fhir.us.cqfmeasures#2.0.0\\output".equals(webref)) { return "http://hl7.org/fhir/us/cqfmeasures/STU2"; } + if ("file://C:\\GitHub\\hl7.fhir.us.davinci-alerts#0.2.0\\output".equals(webref)) { return "http://hl7.org/fhir/us/davinci-alerts/2020Feb"; } + if ("file://C:\\GitHub\\hl7.fhir.us.davinci-atr#0.1.0\\output".equals(webref)) { return "http://hl7.org/fhir/us/davinci-atr/2020Feb"; } + if ("file://C:\\GitHub\\hl7.fhir.us.davinci-deqm#1.0.0\\output".equals(webref)) { return "http://hl7.org/fhir/us/davinci-deqm"; } + if ("file://C:\\GitHub\\hl7.fhir.us.davinci-deqm#1.1.0\\output".equals(webref)) { return "http://hl7.org/fhir/us/davinci-deqm/2020Feb"; } + if ("file://C:\\GitHub\\hl7.fhir.us.davinci-deqm#1.0.0\\output".equals(webref)) { return "http://hl7.org/fhir/us/davinci-deqm/STU1"; } + if ("file://C:\\GitHub\\hl7.fhir.us.dme-orders#0.1.1\\output".equals(webref)) { return "http://hl7.org/fhir/us/dme-orders\\2020May"; } + if ("file://C:\\GitHub\\hl7.fhir.us.ecr#1.0.0\\output".equals(webref)) { return "http://hl7.org/fhir/us/ecr"; } + if ("file://C:\\GitHub\\hl7.fhir.us.ecr#1.0.0\\output".equals(webref)) { return "http://hl7.org/fhir/us/ecr/STU1"; } + if ("file://C:\\GitHub\\hl7.fhir.us.mcode#1.0.0\\output".equals(webref)) { return "http://hl7.org/fhir/us/mcode"; } + if ("file://C:\\GitHub\\hl7.fhir.us.mcode#1.0.0\\output".equals(webref)) { return "http://hl7.org/fhir/us/mcode/STU1"; } + if ("file://C:\\GitHub\\hl7.fhir.us.odh#1.0.0\\output".equals(webref)) { return "http://hl7.org/fhir/us/odh"; } + if ("file://C:\\GitHub\\hl7.fhir.us.odh#1.0.0\\output".equals(webref)) { return "http://hl7.org/fhir/us/odh/STU1"; } + if ("file://C:\\GitHub\\hl7.fhir.us.qicore#4.0.0\\output".equals(webref)) { return "http://hl7.org/fhir/us/qicore"; } + if ("file://C:\\GitHub\\hl7.fhir.us.qicore#4.0.0\\output".equals(webref)) { return "http://hl7.org/fhir/us/qicore/STU4"; } + if ("file://C:\\GitHub\\hl7.fhir.uv.ips#1.0.0\\output".equals(webref)) { return "http://hl7.org/fhir/uv/ips"; } + if ("file://C:\\GitHub\\hl7.fhir.uv.ips#1.0.0\\output".equals(webref)) { return "http://hl7.org/fhir/uv/ips/STU1"; } + if ("file://C:\\GitHub\\hl7.fhir.uv.mhealth-framework#0.1.0\\output".equals(webref)) { return "http://hl7.org/fhir/uv/mhealth-framework/2020May"; } + if ("file://C:\\GitHub\\hl7.fhir.uv.security-label-ds4p#0.1.0\\output".equals(webref)) { return "http://hl7.org/fhir/uv/security-label-ds4p/2020May"; } + if ("file://C:\\GitHub\\hl7.fhir.uv.shorthand#0.12.0\\output".equals(webref)) { return "http://hl7.org/fhir/uv/shorthand/2020May"; } + return webref; }