1
0
Fork 0

[mod] namespace change

This commit is contained in:
Andy Bunce 2025-01-24 12:10:08 +00:00
parent acb48abd31
commit 2c6074d4d3
4 changed files with 4 additions and 4 deletions

View file

@ -7,7 +7,7 @@ requires pdfbox jar on classpath
@javadoc https://javadoc.io/static/org.apache.pdfbox/pdfbox/3.0.2/
:)
module namespace pdfbox="org.apache.pdfbox.Loader";
module namespace pdfbox="org.expkg-zone58.Pdfbox3";
declare namespace Loader ="java:org.apache.pdfbox.Loader";
declare namespace PDFTextStripper = "java:org.apache.pdfbox.text.PDFTextStripper";

Binary file not shown.

View file

@ -8,14 +8,14 @@ let $config :=map {
"manifest-jar" : "pdfbox-3.0.3.jar",
"input-dir" : "C:\Users\mrwhe\git\expkg-zone58\pdfbox\jars\",
"output" : "../lib/pdfbox-3.0.3.fat.jar",
"main-class": "org.apache.pdfbox.Loader"
"main-class": "org.expkg-zone58.Pdfbox3"
}
let $fat-jar := build:fatjar-from-folder($config?input-dir,$config?manifest-jar)
let $fat-jar:=build:update-manifest($fat-jar, $config?main-class)
let $name:=replace($config?main-class,"\.","/") || ".xqm"
let $content:=file:read-binary($config?input-dir || "loader.xqm")
let $content:=file:read-binary($config?input-dir || "Pdfbox3.xqm")
let $fat-jar:=archive:update($fat-jar, $name,$content)
let $output-file := file:resolve-path($config?output, $config?input-dir)
return (file:write-binary($output-file, $fat-jar),

View file

@ -2,7 +2,7 @@
:)
module namespace test="urn:expkg-zone58:pdfbox3:tests";
import module namespace pdfbox="org.apache.pdfbox.Loader";
import module namespace pdfbox="org.expkg-zone58.Pdfbox3";
declare variable $test:base:=file:base-dir()=>file:parent()=>file:parent();