File tree Expand file tree Collapse file tree
main/clojure/clojure/tools/build/tasks
test/clojure/clojure/tools/build/tasks Expand file tree Collapse file tree Original file line number Diff line number Diff line change 7171 {:write {path {:string (str (System/lineSeparator ) (stream->string in)), :append true }}})
7272
7373(defn- conflict-append-dedupe
74- [{:keys [path in ^File existing state] :as _params}]
74+ [{:keys [lib path in ^File existing state] :as _params}]
7575 (let [existing-content (slurp existing)
7676 existing-lower (str/lower-case existing-content)
7777 new-content (stream->string in)
7878 new-content-lower (str/lower-case new-content)
7979 seen (or (get-in state [:append-dedupe path]) #{existing-lower})]
80- (println " \n conflict-append-dedupe" path)
80+ (println " \n conflict-append-dedupe" path lib )
8181 (println " state:" state)
8282 (println " seen:" seen)
8383 (println " existing:" existing-lower)
Original file line number Diff line number Diff line change 137137 (slurp (project-path " target/unzip/META-INF/LICENSE.txt" ))))))
138138
139139(deftest test-conflicts-but-files
140+ (println " \n >>>test-conflicts-but-files" )
140141 (with-test-dir " test-data/uber-conflict"
141142 (api/set-project-root! (.getAbsolutePath *test-dir*))
142143
201202 ; (println "j3: " (slurp (project-path "j3/META-INF/LICENSE.txt")))
202203 ; (println "unzip: " (slurp (project-path "target/unzip/META-INF/LICENSE.txt")))
203204
205+ (println " <<<test-conflicts-but-files" )
206+ (println )
207+
204208 ; ; LICENSE files append but no dupes - include j1 and j2, but not j3 (dupe of j1)
205209 (is (= (str (slurp (project-path " j1/META-INF/LICENSE.txt" )) (System/lineSeparator )
206210 (slurp (project-path " j2/META-INF/LICENSE.txt" )))
You can’t perform that action at this time.
0 commit comments