Skip to content

Commit

Permalink
Merge pull request #282 from edbond/master
Browse files Browse the repository at this point in the history
use current time to touch output file. Fixes gh-281
  • Loading branch information
cemerick committed Jan 10, 2014
2 parents 1e77137 + 3f287d5 commit 952c46f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions support/src/cljsbuild/compiler.clj
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,11 @@
(fs/delete-dir (:output-dir compiler-options)))
(when output-file-dir
(fs/mkdirs output-file-dir))
(let [started-at (System/nanoTime)]
(let [started-at (System/currentTimeMillis)]
(try
(binding [*assert* assert?]
(build (SourcePaths. cljs-paths) compiler-options))
(fs/touch output-file (/ started-at 1000000))
(fs/touch output-file started-at)
(notify-cljs
notify-command
(str "Successfully compiled \"" output-file "\" in " (elapsed started-at) ".") green)
Expand Down

0 comments on commit 952c46f

Please sign in to comment.