File tree Expand file tree Collapse file tree
src/main/clojure/clojure/tools/build/tasks Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11Changelog
22===========
33
4+ * next
5+ * uber - fix from TBUILD-30 to close copied file streams
46* v0.9.1 27ff8a4 on Jan 13, 2023
57 * uber - TBUILD-35 Fix error on exploding jar with / entry
68 * uber - TBUILD-30 Apply exclusions and conflict handlers for local and git libs
Original file line number Diff line number Diff line change 190190 (loop [[^File f & restf] fs, the-state state]
191191 (if f
192192 (let [is (when (.isFile f) (jio/input-stream f))
193- path (.toString (.relativize source-path (.toPath f)))
194- source-time (FileTime/fromMillis (.lastModified f))
195- out-file (jio/file out-dir path)]
196- (recur restf (explode1 is path (.isDirectory f) source-time out-file lib context the-state)))
193+ new-state (try
194+ (let [path (.toString (.relativize source-path (.toPath f)))
195+ source-time (FileTime/fromMillis (.lastModified f))
196+ out-file (jio/file out-dir path)]
197+ (explode1 is path (.isDirectory f) source-time out-file lib context the-state))
198+ (finally
199+ (when is (.close ^InputStream is))))]
200+ (recur restf new-state))
197201 the-state)))
198202
199203 :else
You can’t perform that action at this time.
0 commit comments