From 0e4c448c20fb54db6450413e38789b4852be85f0 Mon Sep 17 00:00:00 2001 From: Andy Bunce Date: Mon, 10 Feb 2025 17:58:29 +0000 Subject: [PATCH] [mod] change custom package.json key --- .gitea/workflows/trigger/release | 2 +- package.json | 3 +-- scripts/build.xqm | 12 ++++++------ 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/.gitea/workflows/trigger/release b/.gitea/workflows/trigger/release index 676895e..9f2dd2a 100644 --- a/.gitea/workflows/trigger/release +++ b/.gitea/workflows/trigger/release @@ -3,4 +3,4 @@ c Xyxh 4456 -9.7.4 xyxz0 \ No newline at end of file +9.7.4 xyxz01 \ No newline at end of file diff --git a/package.json b/package.json index 9eaf054..3eeb4f6 100644 --- a/package.json +++ b/package.json @@ -19,8 +19,7 @@ ], "author": "Andy Bunce", "license": "Apache-2.0", - "quodatum": { - "random": true, + "expkg_zone58": { "namespace": "org.expkg_zone58.Pdfbox3", "main-class": "org.apache.pdfbox.pdmodel.PDDocument", "download": "jars/", diff --git a/scripts/build.xqm b/scripts/build.xqm index 66adbcf..5a3dee5 100644 --- a/scripts/build.xqm +++ b/scripts/build.xqm @@ -67,7 +67,7 @@ declare function build:basex.xml() as xs:string{ ``[ `{ build:jars("name")!concat('',.,'') }` - `{ $build:PKG?quodatum?main-class }` + `{ $build:PKG?expkg_zone58?main-class }` ]`` @@ -77,14 +77,14 @@ as xs:string{ declare function build:expath-pkg.xml() as xs:string{ ``[ `{$build:PKG?description}` - `{$build:PKG?quodatum?namespace}` + `{$build:PKG?expkg_zone58?namespace}` `{$build:PKG?main=>replace("^.*/","")}` @@ -94,7 +94,7 @@ as xs:string{ declare function build:xar-create() as xs:base64Binary{ - let $_:=build:maven-download($build:PKG?quodatum?maven=>array:flatten(),$build:base || "jars/") + let $_:=build:maven-download($build:PKG?expkg_zone58?maven=>array:flatten(),$build:base || "jars/") let $entries:= build:xar-add(map{},build:jars("content"),build:jars("download")!build:content(.)) =>build:xar-add("content/Pdfbox3.xqm",build:content("src/Pdfbox3.xqm")) @@ -124,11 +124,11 @@ as xs:string{ declare function build:jars($style as xs:string) as xs:string*{ -let $src:=$build:PKG?quodatum?maven=>array:flatten() +let $src:=$build:PKG?expkg_zone58?maven=>array:flatten() let $names:= $src!replace(.,"^.*/","") return switch($style) case "name" return $names -case "download" return $names!concat($build:PKG?quodatum?download,.) +case "download" return $names!concat($build:PKG?expkg_zone58?download,.) case "content" return $names!concat("content/",.) default return $src };