Last active
January 8, 2018 03:35
-
-
Save bhagany/2bfd183d768487cdd2719bddd58a2af6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/boot/core/src/boot/task_helpers.clj b/boot/core/src/boot/task_helpers.clj | |
index 13089cc..8110f6c 100644 | |
--- a/boot/core/src/boot/task_helpers.clj | |
+++ b/boot/core/src/boot/task_helpers.clj | |
@@ -117,12 +117,14 @@ | |
(defmethod sift-action :move | |
[_ _ args] | |
(let [proc #(reduce-kv string/replace % args) | |
- reducer (fn [xs k v] | |
- (let [k (proc k)] | |
- (assoc xs k (assoc v :path k))))] | |
+ mkreducer (fn [dir] | |
+ (fn [xs k v] | |
+ (let [k (proc k)] | |
+ (assoc xs k (assoc v :path k :dir dir)))))] | |
(fn [fileset] | |
- (->> (partial reduce-kv reducer {}) | |
- (update-in fileset [:tree]))))) | |
+ (let [dir (#'core/get-add-dir fileset #{:resource})] | |
+ (->> (partial reduce-kv (mkreducer dir) {}) | |
+ (update-in fileset [:tree])))))) | |
(defmethod sift-action :add-jar | |
[v? _ args] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment