ob-java: Fix previous commit

* lisp/ob-java.el (org-babel-execute:java): Restore inspection of
:dir's value to decide whether to run from temporary directory.

My compatibility fix in the previous commit incorrectly changed the
documented and intended behavior for (:dir . nil).

Reported-by: Ian Martins <ianxm@jhu.edu>
This commit is contained in:
Kyle Meyer 2021-02-14 15:42:18 -05:00
parent 49364f904b
commit ff1e8f3eba
1 changed files with 1 additions and 1 deletions

View File

@ -172,7 +172,7 @@ replaced in this string.")
(or (cdr (assq :java params))
org-babel-java-command))
;; if true, run from babel temp directory
(run-from-temp (not (assq :dir params)))
(run-from-temp (not (cdr (assq :dir params))))
;; class and package
(fullclassname (or (cdr (assq :classname params))
(org-babel-java-find-classname body)))