Skip to content

Commit

Permalink
issue #1 - pass task-name and args to run-sub-proj
Browse files Browse the repository at this point in the history
  • Loading branch information
kumarshantanu committed Oct 16, 2011
1 parent 5d4d31a commit e55cad4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/leiningen/sub.clj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@


(defn run-sub-proj
[sub-proj-dir]
[sub-proj-dir task-name args]
(println "Reading project from " sub-proj-dir)
(let [sub-project (read-project (str sub-proj-dir "/project.clj"))]
(apply-task task-name sub-project args task-not-found)))
Expand All @@ -23,5 +23,6 @@ Note: Each sub-project directory should have its own project.clj file")
(let [a (if (= 0 a) nil a)
b (if (= 0 b) nil b)]
(or a b)))
(map run-sub-proj (:sub project)))]
(map #(run-sub-proj % task-name args)
(:sub project)))]
(exit code))))

0 comments on commit e55cad4

Please sign in to comment.