From bd45ef17a4ee478ab10038d73bfe4577987824f7 Mon Sep 17 00:00:00 2001 From: Andy Bunce Date: Wed, 22 Apr 2026 22:29:58 +0100 Subject: [PATCH] [mod] add classifier, file parser --- build.xqm | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/build.xqm b/build.xqm index 55aafd4..e567c6e 100644 --- a/build.xqm +++ b/build.xqm @@ -162,7 +162,7 @@ as xs:string{ $parts[2], $parts[3], string-join(($parts[2] , "-" , $parts[3] , - if(3string-join("/") }; @@ -172,4 +172,12 @@ declare function build:write-binary($dest as xs:string,$contents as xs:base64Bin as empty-sequence(){ file:create-dir(file:parent($dest)), file:write-binary($dest,$contents) +}; + +(:~ return non-blank lines before # from $file :) +declare function build:maven-lines($filepath as xs:string) as xs:string +{ +unparsed-text-lines($filepath) +!substring-before(.||"#","#") +!normalize-space(.)[0