Don't create target/classes unless we're in an actual project.

Fixes #589.
This commit is contained in:
Phil Hagelberg 2013-05-09 16:35:12 -07:00
parent 1f65fa4468
commit 92615f15ce

View file

@ -50,10 +50,10 @@ leiningen.core.utils/platform-nullsink instead."
javac, compile, and any other tasks the project specifies." javac, compile, and any other tasks the project specifies."
[project] [project]
;; This must exist before the project is launched. ;; This must exist before the project is launched.
(.mkdirs (io/file (:compile-path project "/tmp"))) (when (:root project)
(.mkdirs (io/file (:compile-path project "/tmp"))))
(classpath/resolve-dependencies :dependencies project) (classpath/resolve-dependencies :dependencies project)
(run-prep-tasks project) (run-prep-tasks project)
(.mkdirs (io/file (:compile-path project "/tmp")))
(deliver @prep-blocker true) (deliver @prep-blocker true)
(reset! prep-blocker (promise))) (reset! prep-blocker (promise)))