From c74e7b4958f000c6f43bc6e72bb1c67c96587dea Mon Sep 17 00:00:00 2001 From: Jim Crossley Date: Wed, 26 Feb 2014 13:53:16 -0500 Subject: [PATCH] Only log the copy when copy actually occurs It's pretty confusing to see the Copy messages when :update is true and no files have changed. :) --- src/leiningen/resource.clj | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/leiningen/resource.clj b/src/leiningen/resource.clj index eb4fd6c..2455cc2 100644 --- a/src/leiningen/resource.clj +++ b/src/leiningen/resource.clj @@ -90,13 +90,12 @@ Return: than the dest [src-file dest-file] - when the file was copied " - (println "Copy" src "to" (str dest-file)) (let [dest-ts (.lastModified dest-file) src-ts (.lastModified src-file)] ;(println "update:" update " dest-ts:" dest-ts " src-ts:" src-ts) (when (or (not update) (and update (< dest-ts src-ts))) - ;(println "copying") + (println "Copy" src "to" (str dest-file)) (let [s (if-not skip-stencil (stencil/render-string (slurp src) value-map) (io/file src))]