task interface and java helper
This commit is contained in:
parent
20dd832c82
commit
57f3c1eee7
35 changed files with 793 additions and 251 deletions
|
|
@ -16,7 +16,7 @@ declare namespace pkg="http://expath.org/ns/pkg";
|
|||
declare function files($src as xs:string) as xs:string*
|
||||
{
|
||||
fn:filter(file:list($src,fn:true()),
|
||||
function ($f){file:is-file($src || $f)}
|
||||
function ($f){($src || $f)=>fn:translate("\","/")=>file:is-file()}
|
||||
)
|
||||
!fn:translate(.,"\","/")
|
||||
};
|
||||
|
|
@ -25,7 +25,7 @@ declare namespace pkg="http://expath.org/ns/pkg";
|
|||
: write xqdoc for $src/$path to $dest
|
||||
:)
|
||||
declare %updating function write-xqdoc($path,$src,$dest){
|
||||
let $url:=fn:resolve-uri( $path,$src)
|
||||
let $url:=fn:resolve-uri( $path,$src)=>fn:trace()
|
||||
let $type:=fetch:content-type($url)
|
||||
|
||||
return switch($type)
|
||||
|
|
|
|||
|
|
@ -1,19 +0,0 @@
|
|||
(: create o/ps
|
||||
: xar package and xqdoc
|
||||
:)
|
||||
declare namespace pkg="http://expath.org/ns/pkg";
|
||||
import module namespace build = "quodatum.utils.build" at "buildx.xqm";
|
||||
declare variable $base:=resolve-uri("../");
|
||||
declare variable $src:=resolve-uri("../src/main/");
|
||||
declare variable $dest:=resolve-uri("../dist/");
|
||||
|
||||
(:~
|
||||
: the package definition as a pkg:package
|
||||
:)
|
||||
declare variable $package as element(pkg:package) :=doc(resolve-uri("expath-pkg.xml",$src))/pkg:package;
|
||||
|
||||
declare variable $content:=resolve-uri("content/",$src);
|
||||
declare variable $dest-doc:=resolve-uri("doc/",$dest);
|
||||
|
||||
|
||||
build:files($src)
|
||||
Loading…
Add table
Add a link
Reference in a new issue