From f0d83a355e4eb6a3d0de4e06ba394f3f76f2f3d4 Mon Sep 17 00:00:00 2001 From: Eric Schulte Date: Mon, 25 Apr 2011 13:10:45 -0600 Subject: [PATCH] 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. --- lisp/ob-ditaa.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/ob-ditaa.el b/lisp/ob-ditaa.el index 20b5c421c..f352fc355 100644 --- a/lisp/ob-ditaa.el +++ b/lisp/ob-ditaa.el @@ -54,8 +54,9 @@ This function is called by `org-babel-execute-src-block'." "ditaa code block requires :file header argument"))) (cdr (assoc :file params)))) (cmdline (cdr (assoc :cmdline params))) + (java (cdr (assoc :java params))) (in-file (org-babel-temp-file "ditaa-")) - (cmd (concat "java -jar " + (cmd (concat "java " java " -jar " (shell-quote-argument (expand-file-name org-ditaa-jar-path)) " " cmdline