Skip to content

Commit

Permalink
Merge remote-tracking branch 'djarek/saxonhe' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
swatanabe committed Feb 15, 2019
2 parents acdf273 + 39c8e85 commit f1f02d7
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions src/tools/saxonhe.jam
Original file line number Diff line number Diff line change
@@ -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])"
}

0 comments on commit f1f02d7

Please sign in to comment.