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:
27
src/tools/saxonhe.jam
Normal file
27
src/tools/saxonhe.jam
Normal 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])"
|
||||
}
|
||||
Reference in New Issue
Block a user