2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-14 12:42:11 +00:00

Add support for SaxonHE for xsl processing

Will be used in generation of Beast qreference.

Signed-off-by: Damian Jarek <damian.jarek93@gmail.com>
This commit is contained in:
Damian Jarek
2018-12-20 00:20:21 +01:00
parent 9bf1f14777
commit 39c8e85e71

27
src/tools/saxonhe.jam Normal file
View File

@@ -0,0 +1,27 @@
#
# Copyright (c) 2018 Damian Jarek (damian dot jarek93 at gmail dot com)
#
# Distributed under the Boost Software License, Version 1.0. (See accompanying
# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#
import common ;
rule init ( saxonhe_jar ? : java_exe ? )
{
.java_exe = [ common.get-invocation-command saxonhe : java : $(java_exe) : ] ;
if $(saxonhe_jar)
{
.saxonhe_jar = $(saxonhe_jar) ;
}
else
{
local jar = [ GLOB "/usr/share/java/saxon/" "/usr/share/java/" : Saxon-HE.jar ] ;
.saxonhe_jar = $(jar[1]) ;
}
}
actions saxonhe
{
"$(.java_exe)" -jar "$(.saxonhe_jar)" -o:"$(<)" -s:"$(>[1])" -xsl:"$(>[2])"
}