Skip to content

Commit a0a01cf

Browse files
committed
more windows test debug
1 parent 36cf482 commit a0a01cf

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

src/main/clojure/clojure/tools/build/tasks/uber.clj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,13 @@
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 "\nconflict-append-dedupe" path)
80+
(println "\nconflict-append-dedupe" path lib)
8181
(println "state:" state)
8282
(println "seen:" seen)
8383
(println "existing:" existing-lower)

src/test/clojure/clojure/tools/build/tasks/test_uber.clj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@
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

@@ -201,6 +202,9 @@
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")))

0 commit comments

Comments
 (0)