Permalink
Browse files

Clarify :checkout-deps-shares in sample.project.clj.

  • Loading branch information...
1 parent e610248 commit 60a8ed82d659f0eadc3771cc2fdfbd99bee0ade6 @technomancy committed Jul 6, 2011
Showing with 11 additions and 8 deletions.
  1. +8 −7 sample.project.clj
  2. +3 −1 src/leiningen/classpath.clj
View
@@ -69,13 +69,14 @@
;; use a regex that will be matched against filenames in the project root.
;; Defaults to #"^$NAME-.*\.jar$".
:regex-to-clean #"hs_err_pid.*"
- ;; Load dependencies from checkouts/ directory. Set this to be a vector of
- ;; functions that take the target project as argument.
- ;; The default is [:source-path :compile-path :resources-path]
- ;; but you could also add, for instance, :test-path to share tests, or
- ;; ~(fn [p] (str (:root p) "/lib/dev/*")) to load also development dependencies
- ;; from the checked out project (Java 1.6+)
- :checkout-deps-shares
+ ;; Paths to include on the classpath from each project in the
+ ;; checkouts/ directory. (See the FAQ in the Readme for more details
+ ;; about checkout dependencies.) Set this to be a vector of
+ ;; functions that take the target project as argument. Defaults to
+ ;; [:source-path :compile-path :resources-path], but you could use
+ ;; the following to share code from the test suite:
+ :checkout-deps-shares [:source-path :test-path
+ ~(fn [p] (str (:root p) "/lib/dev/*"))]
;; Load these namespaces on startup to pick up hooks from them. Hooks
;; generally come from plugins, but may be included in your project source.
:hooks [leiningen.hooks.difftest]
@@ -25,7 +25,9 @@
;; Note that this resets the leiningen.core/project var!
:let [proj (read-dependency-project dep)]
:when proj]
- (for [d (:checkout-deps-shares project [:source-path :compile-path :resources-path])]
+ (for [d (:checkout-deps-shares project [:source-path
+ :compile-path
+ :resources-path])]
(ensure-absolute (d proj) dep)))))
(defn user-plugins []

0 comments on commit 60a8ed8

Please sign in to comment.