> This creates a classes/midje/ directory full of class files. (QUESTION: Why 
> create a bunch of class files when Midje is in lib/ as a jar file?)
leiningen's compile task calls clojure.core/compile for every
namespace you specify in your project.clj.  clojure.core/compile sets
the *compile-files* var to true, and then sets about loading
everything your namespace needs to load properly. Any namespace loaded
while *compile-files* is set to true gets written to *compile-path*.
A bit of a hack would be to:

;; load your ns and it's dependencies
(require 'midje.aot)

;; reload your ns, only its class files get written to *compile-path*
;; as the others are already loaded
(binding [*compile-files* true]
  (require 'midje.aot :reload))

I'm not sure how this stands up to more complex projects, and large
dependency trees, though.
Nor am I sure it solves the require-dilemma you mention later in the email.

Hope that was helpful,
  Nate

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to