ob-ditaa: adding :java header arg for passing flags to the java command
Thanks to Juan Pechiar for raising the need for this header argument. * lisp/ob-ditaa.el (org-babel-execute:ditaa): New ":java" header argument.
This commit is contained in:
parent
ae60048a81
commit
f0d83a355e
|
@ -54,8 +54,9 @@ This function is called by `org-babel-execute-src-block'."
|
||||||
"ditaa code block requires :file header argument")))
|
"ditaa code block requires :file header argument")))
|
||||||
(cdr (assoc :file params))))
|
(cdr (assoc :file params))))
|
||||||
(cmdline (cdr (assoc :cmdline params)))
|
(cmdline (cdr (assoc :cmdline params)))
|
||||||
|
(java (cdr (assoc :java params)))
|
||||||
(in-file (org-babel-temp-file "ditaa-"))
|
(in-file (org-babel-temp-file "ditaa-"))
|
||||||
(cmd (concat "java -jar "
|
(cmd (concat "java " java " -jar "
|
||||||
(shell-quote-argument
|
(shell-quote-argument
|
||||||
(expand-file-name org-ditaa-jar-path))
|
(expand-file-name org-ditaa-jar-path))
|
||||||
" " cmdline
|
" " cmdline
|
||||||
|
|
Loading…
Reference in New Issue