Browse Source

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>
Kyle Meyer 4 years ago
parent
commit
ff1e8f3eba
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lisp/ob-java.el

+ 1 - 1
lisp/ob-java.el

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