Permalink
Browse files

Patched up project, made the :with signaling more robust

  • Loading branch information...
1 parent ec243bc commit e633e37d02bce93786feb723cc6b99ec51cf633b @ohpauleez ohpauleez committed with Matthew Maravillas May 31, 2011
Showing with 8 additions and 4 deletions.
  1. +1 −1 project.clj
  2. +7 −3 src/leiningen/multi.clj
View
@@ -4,7 +4,7 @@
:license {:name "MIT License"
:url "http://www.opensource.org/licenses/mit-license.php"}
:dev-dependencies [[org.clojure/clojure "1.2.1"]
- [org.clojure/clojure-contrib "1.2.1"]
+ [org.clojure/clojure-contrib "1.2.0"]
;; A lein jar is necessary for the tests. Clojars is a bit
;; oudated, though, so I'll just let you pull it in yourself.
@@ -37,9 +37,13 @@
(:multi-deps project))))
([task-fn project delimiter-fn depkey] ;; force task for dep set via depkey
{:pre [(not-empty depkey)]}
- (let [depvec ((:multi-deps project) depkey)]
- (delimiter-fn depkey depvec)
- (task-fn (project-for-set project depkey depvec)))))
+ (if-let [deps (:multi-deps project)]
+ (if-let [depvec (deps depkey)]
+ (do
+ (delimiter-fn depkey depvec)
+ (task-fn (project-for-set project depkey depvec)))
+ (println "No version:" depkey "found in multi-deps"))
+ (println "No multi-deps specified in project.clj"))))
(defn- print-base-message
[task project]

0 comments on commit e633e37

Please sign in to comment.