Skip to content
This repository has been archived by the owner on Jan 23, 2018. It is now read-only.

Commit

Permalink
Corrected the maven dirs & added support for maven's
Browse files Browse the repository at this point in the history
"dependency:copy-dependencies" (jars in target/dependency)
  • Loading branch information
dysinger authored and technomancy committed Nov 7, 2009
1 parent 359b99f commit 77c7f8a
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/emacs/swank-clojure.el
Expand Up @@ -255,11 +255,14 @@ The `path' variable is bound to the project root when these functions run.")
(add-to-list 'swank-clojure-classpath (expand-file-name "test/" path))

;; For Maven style project layouts
(when (or (file-exists-p (expand-file-name "pom.xml" path))
(file-exists-p (expand-file-name "project.clj" path)))
(dolist (d '("src/main/clojure/" "src/test/"
(when (file-exists-p (expand-file-name "pom.xml" path))
(dolist (d '("src/main/clojure/" "src/test/clojure/"
"target/classes/" "target/dependency/"))
(add-to-list 'swank-clojure-classpath (expand-file-name d path) t))
(dolist (d (let ((l (expand-file-name "target/dependency/" path)))
(if (file-directory-p l)
(directory-files l t ".jar$"))))
(add-to-list 'swank-clojure-classpath (expand-file-name d path) t))
(add-to-list 'swank-clojure-extra-vm-args
(format "-Dclojure.compile.path=%s"
(expand-file-name "target/classes/" path))))
Expand Down

0 comments on commit 77c7f8a

Please sign in to comment.