File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
src/main/clojure/clojure/tools/namespace Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 1818 [clojure.set :as set]
1919 [clojure.string :as string])
2020 (:import (System.IO DirectoryInfo FileSystemInfo Path) (System.Text.RegularExpressions Regex))) ; ;; (java.io File) (java.util.regex Pattern)
21-
21+
2222(declare make-dir-info )
2323
2424(defn- find-files [dirs platform]
2929 (mapcat #(find/find-sources-in-dir % platform))
3030 )) ; ;; ditto: (map #(.getCanonicalFile ^File %))
3131
32+ (defn- milliseconds-since-epoch [^DateTime time]
33+ (long
34+ (/ (- (.-Ticks time)
35+ (.-Ticks DateTime/UnixEpoch))
36+ TimeSpan/TicksPerMillisecond)))
37+
3238(defn- modified-since-tracked? [tracker file]
3339 (if-let [time (::time tracker)]
34- (DateTime/op_LessThan time (.LastWriteTimeUtc ^FileSystemInfo file))
40+ (< time (milliseconds-since-epoch ( .LastWriteTimeUtc ^FileSystemInfo file) ))
3541 true ))
3642
3743(defn- modified-files [tracker files]
You can’t perform that action at this time.
0 commit comments