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:
Eric Schulte 2011-04-25 13:10:45 -06:00
parent ae60048a81
commit f0d83a355e
1 changed files with 2 additions and 1 deletions

View File

@ -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