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 6868
6969(defn- conflict-append
7070 [{:keys [path in]}]
71- {:write {path {:string (str " \n " (stream->string in)), :append true }}})
71+ {:write {path {:string (str ( System/lineSeparator ) (stream->string in)), :append true }}})
7272
7373(defn- conflict-append-dedupe
7474 [{:keys [path in ^File existing state] :as _params}]
8282 {:state (assoc-in state [:append-dedupe path] seen)}
8383 ; ; record and append
8484 {:state (assoc-in state [:append-dedupe path] (conj seen new-content))
85- :write {path {:string (str " \n " new-content), :append true }}})))
85+ :write {path {:string (str ( System/lineSeparator ) new-content), :append true }}})))
8686
8787(defn conflict-data-readers
8888 [{:keys [path in ^File existing]}]
Original file line number Diff line number Diff line change 127127 (slurp (project-path " target/unzip/overwrite.txt" ))))
128128
129129 ; ; append files append
130- (is (= (str (slurp (project-path " j1/append.txt" )) " \n "
130+ (is (= (str (slurp (project-path " j1/append.txt" )) ( System/lineSeparator )
131131 (slurp (project-path " j2/append.txt" )))
132132 (slurp (project-path " target/unzip/append.txt" ))))
133133
134134 ; ; LICENSE files append but no dupes - include j1 and j2, but not j3 (dupe of j1)
135- (is (= (str (slurp (project-path " j1/META-INF/LICENSE.txt" )) " \n "
135+ (is (= (str (slurp (project-path " j1/META-INF/LICENSE.txt" )) ( System/lineSeparator )
136136 (slurp (project-path " j2/META-INF/LICENSE.txt" )))
137137 (slurp (project-path " target/unzip/META-INF/LICENSE.txt" ))))))
138138
You can’t perform that action at this time.
0 commit comments