This commit is contained in:
parent
629bb2c756
commit
5c9e32d119
6 changed files with 7 additions and 7 deletions
|
@ -21,7 +21,7 @@ jobs:
|
|||
|
||||
- name: Download BaseX
|
||||
run: |
|
||||
BASEX_VERSION="9.7.4" # Example version (adjust as needed)
|
||||
BASEX_VERSION="10.7" # Example version (adjust as needed)
|
||||
# Remove dots from version for filename (e.g., "11.7" → "117") "9.7.4","10.7"
|
||||
BASEX_CLEAN_VERSION="${BASEX_VERSION//./}"
|
||||
wget https://files.basex.org/releases/$BASEX_VERSION/BaseX$BASEX_CLEAN_VERSION.zip -O BaseX.zip
|
||||
|
@ -51,6 +51,6 @@ jobs:
|
|||
|
||||
- name: Run tests
|
||||
run: |
|
||||
basex -t src/test
|
||||
basex -Wt src/test
|
||||
|
||||
|
||||
|
|
|
@ -3,4 +3,4 @@
|
|||
c
|
||||
Xyxh
|
||||
4456
|
||||
9.7.4 xyx
|
||||
9.7.4 xyxz
|
2
LICENSE
2
LICENSE
|
@ -186,7 +186,7 @@
|
|||
same "printed page" as the copyright notice for easier
|
||||
identification within third-party archives.
|
||||
|
||||
Copyright 2024 Andy Bunce
|
||||
Copyright 2024-25 Andy Bunce
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
|
|
|
@ -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 $entries:=
|
||||
build:xar-add(map{},build:jars("content"),build:jars("download")!build:content(.))
|
||||
=>build:xar-add("content/Pdfbox3.xqm",build:content("src/Pdfbox3.xqm"))
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
|
||||
import module namespace build = 'urn:quodatum:build1' at 'build.xqm';
|
||||
|
||||
let $_:=build:maven-download($build:PKG?quodatum?maven=>array:flatten(),$build:base || "jars/")
|
||||
|
||||
let $xar:=build:xar-create()
|
||||
let $output-file := build:xar-path()
|
||||
return (build:write-binary($output-file, $xar),
|
||||
|
|
|
@ -83,7 +83,7 @@ function test:page-image(){
|
|||
};
|
||||
|
||||
declare %unit:test
|
||||
function test:pdf-with(){
|
||||
function test:with-pdf(){
|
||||
let $path:=test:resolve("samples.pdf/BaseX100.pdf")
|
||||
let $txt:=pdfbox:with-pdf($path,pdfbox:page-text(?,101))
|
||||
return unit:assert(starts-with($txt,"Options"))
|
||||
|
|
Loading…
Add table
Reference in a new issue