Skip to content

Commit

Permalink
Merge pull request #10 from jcrossley3/patch-1
Browse files Browse the repository at this point in the history
Only log the copy when copy actually occurs
  • Loading branch information
m0smith committed Feb 27, 2014
2 parents 0bb0d34 + c74e7b4 commit 080bd73
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/leiningen/resource.clj
Original file line number Diff line number Diff line change
Expand Up @@ -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))]
Expand Down

0 comments on commit 080bd73

Please sign in to comment.