diff --git a/.gitea/workflows/ci-basex.yaml b/.gitea/workflows/ci-basex.yaml index 943d96e..e15f456 100644 --- a/.gitea/workflows/ci-basex.yaml +++ b/.gitea/workflows/ci-basex.yaml @@ -36,7 +36,6 @@ jobs: - name: Build package run: | - ls -l basex scripts/make-fat-jar.xq - name: Run BaseX Tests diff --git a/.gitea/workflows/trigger/release b/.gitea/workflows/trigger/release index 67b1543..8bac943 100644 --- a/.gitea/workflows/trigger/release +++ b/.gitea/workflows/trigger/release @@ -1 +1 @@ -30/1/2025.............. \ No newline at end of file +30/1/2025............... \ No newline at end of file diff --git a/scripts/build.xqm b/scripts/build.xqm index 4e53ba3..c658a5b 100644 --- a/scripts/build.xqm +++ b/scripts/build.xqm @@ -63,5 +63,11 @@ as empty-sequence(){ for $f in $urls let $dest:=$destdir || replace($f,"^.*/","") where not(file:exists($dest)) -return file:write-binary($dest, fetch:binary(resolve-uri($f,$build:REPO)=>trace("Download: "))) +return build:write-binary($dest, fetch:binary(resolve-uri($f,$build:REPO)=>trace("Download: "))) +}; + +declare function build:write-binary($dest as xs:string,$contents) +as empty-sequence{ +file:create-dir(file:parent($dest)), +file:write-binary($dest,$contents) }; \ No newline at end of file diff --git a/scripts/make-fat-jar.xq b/scripts/make-fat-jar.xq index 2ae15b6..184c75b 100644 --- a/scripts/make-fat-jar.xq +++ b/scripts/make-fat-jar.xq @@ -24,6 +24,6 @@ let $name:=replace($config?main-class,"\.","/") || ".xqm" let $content:=file:read-binary($config?base || "src/Pdfbox3.xqm") let $fat-jar:=archive:update($fat-jar, $name,$content) let $output-file := file:resolve-path($config?output,$config?base) -return (file:write-binary($output-file, $fat-jar), +return (build:write-binary($output-file, $fat-jar), trace($output-file,"fat jar: ")) \ No newline at end of file