ping build

This commit is contained in:
Grahame Grieve 2023-03-02 07:36:10 +11:00
parent 042c1dd29e
commit 31b770db8a
1 changed files with 12 additions and 9 deletions

View File

@ -29,7 +29,7 @@ public class PackageHacker {
private static boolean useSecureReferences = false;
public static void main(String[] args) throws FileNotFoundException, IOException {
new PackageHacker().edit("/Users/grahamegrieve/web/hl7.org/fhir/5.0.0-snapshot3/hl7.fhir.r5.expansions.tgz");
new PackageHacker().edit("/Users/grahamegrieve/web/hl7.org/fhir/5.0.0-draft-final/hl7.fhir.r5.search.tgz");
}
private void edit(String name) throws FileNotFoundException, IOException {
@ -42,13 +42,13 @@ public class PackageHacker {
System.out.println(nice(pck.getNpm()));
change(pck.getNpm());
fixContent(pck.getFolders().get("package").getContent());
if (pck.getFolders().containsKey("openapi")) {
fixContent(pck.getFolders().get("openapi").getContent());
}
if (pck.getFolders().containsKey("xml")) {
fixContent(pck.getFolders().get("xml").getContent());
}
// fixContent(pck.getFolders().get("package").getContent());
// if (pck.getFolders().containsKey("openapi")) {
// fixContent(pck.getFolders().get("openapi").getContent());
// }
// if (pck.getFolders().containsKey("xml")) {
// fixContent(pck.getFolders().get("xml").getContent());
// }
// fixExampleContent(pck.getFolders().get("example").getContent());
System.out.println("Revised Package");
@ -81,7 +81,10 @@ public class PackageHacker {
private void change(JsonObject npm) throws FileNotFoundException, IOException {
// fixVersions(npm);
npm.remove("notForPublication");
// npm.remove("url");
// npm.remove("name");
// npm.add("name", "hl7.fhir.r5.search");
// npm.remove("title");
// npm.add("title", "FHIR 5.0.0-draft-final package : Server Search Parameters");
// npm.add("url", "https://hl7chile.cl/fhir/ig/CoreCL/1.7.0");
// npm.remove("name");
// npm.addProperty("name", "hl7.fhir.uv.smart-app-launch");