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