Skip to content

Commit

Permalink
more windows test debug
Browse files Browse the repository at this point in the history
  • Loading branch information
puredanger committed Aug 11, 2023
1 parent 36cf482 commit a0a01cf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/clojure/clojure/tools/build/tasks/uber.clj
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,13 @@
{:write {path {:string (str (System/lineSeparator) (stream->string in)), :append true}}})

(defn- conflict-append-dedupe
[{:keys [path in ^File existing state] :as _params}]
[{:keys [lib path in ^File existing state] :as _params}]
(let [existing-content (slurp existing)
existing-lower (str/lower-case existing-content)
new-content (stream->string in)
new-content-lower (str/lower-case new-content)
seen (or (get-in state [:append-dedupe path]) #{existing-lower})]
(println "\nconflict-append-dedupe" path)
(println "\nconflict-append-dedupe" path lib)
(println "state:" state)
(println "seen:" seen)
(println "existing:" existing-lower)
Expand Down
4 changes: 4 additions & 0 deletions src/test/clojure/clojure/tools/build/tasks/test_uber.clj
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@
(slurp (project-path "target/unzip/META-INF/LICENSE.txt"))))))

(deftest test-conflicts-but-files
(println "\n>>>test-conflicts-but-files")
(with-test-dir "test-data/uber-conflict"
(api/set-project-root! (.getAbsolutePath *test-dir*))

Expand Down Expand Up @@ -201,6 +202,9 @@
;(println "j3: " (slurp (project-path "j3/META-INF/LICENSE.txt")))
;(println "unzip: " (slurp (project-path "target/unzip/META-INF/LICENSE.txt")))

(println "<<<test-conflicts-but-files")
(println)

;; LICENSE files append but no dupes - include j1 and j2, but not j3 (dupe of j1)
(is (= (str (slurp (project-path "j1/META-INF/LICENSE.txt")) (System/lineSeparator)
(slurp (project-path "j2/META-INF/LICENSE.txt")))
Expand Down

0 comments on commit a0a01cf

Please sign in to comment.