1
0
Fork 0

[add]
Some checks failed
Run BaseX Tests / test (push) Failing after 28s

This commit is contained in:
Andy Bunce 2025-01-31 23:08:25 +00:00
parent 4eec75b71d
commit 0b8d565dac
2 changed files with 7 additions and 5 deletions

View file

@ -1 +1 @@
30/1/2025................ 30/1/2025.................

View file

@ -60,10 +60,12 @@ archive:update($jar,$name,$file)
declare variable $build:REPO as xs:string external :="https://repo1.maven.org/maven2/"; declare variable $build:REPO as xs:string external :="https://repo1.maven.org/maven2/";
declare function build:maven-download($urls as xs:string*,$destdir as xs:string) declare function build:maven-download($urls as xs:string*,$destdir as xs:string)
as empty-sequence(){ as empty-sequence(){
for $f in $urls file:create-dir($destdir),
let $dest:=$destdir || replace($f,"^.*/","") for $f in $urls
where not(file:exists($dest)) let $dest:=$destdir || replace($f,"^.*/","")
return build:write-binary($dest, fetch:binary(resolve-uri($f,$build:REPO)=>trace("Download: "))) where not(file:exists($dest))
return build:write-binary($dest, fetch:binary(resolve-uri($f,$build:REPO)
=>trace("Download: ")))
}; };
declare function build:write-binary($dest as xs:string,$contents) declare function build:write-binary($dest as xs:string,$contents)