Skip to content

Commit

Permalink
Revert "Make (sift :move) create resources (boot-clj#680)"
Browse files Browse the repository at this point in the history
This reverts commit 37fa9fb.
  • Loading branch information
alandipert authored and bbatsov committed Jun 29, 2018
1 parent 41f200b commit bdbc2ef
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions boot/core/src/boot/task_helpers.clj
Original file line number Diff line number Diff line change
Expand Up @@ -117,14 +117,12 @@
(defmethod sift-action :move
[_ _ args]
(let [proc #(reduce-kv string/replace % args)
mkreducer (fn [dir]
(fn [xs k v]
(let [k (proc k)]
(assoc xs k (assoc v :path k :dir dir)))))]
reducer (fn [xs k v]
(let [k (proc k)]
(assoc xs k (assoc v :path k))))]
(fn [fileset]
(let [dir (#'core/get-add-dir fileset #{:resource})]
(->> (partial reduce-kv (mkreducer dir) {})
(update-in fileset [:tree]))))))
(->> (partial reduce-kv reducer {})
(update-in fileset [:tree])))))

(defmethod sift-action :add-jar
[v? _ args]
Expand Down

0 comments on commit bdbc2ef

Please sign in to comment.