lib/jekyll-diagrams/plantuml.rb in jekyll-diagrams-0.9.2 vs lib/jekyll-diagrams/plantuml.rb in jekyll-diagrams-0.9.3
- old
+ new
@@ -11,13 +11,12 @@
svg = render_with_stdin_stdout(command, code)
svg.sub!(XML_REGEX, '')
end
def build_command(_config)
- options = +'java'
- options << ' -Djava.awt.headless=true'
- options << ' -jar '
- options << vendor_path('plantuml.1.2020.1.jar')
+ jar = Diagrams.vendor_path('plantuml.1.2020.1.jar')
+
+ options = +Diagrams.run_jar(jar)
options << ' -tsvg -pipe'
end
end
end
end