File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
src/main/clojure/clojure/tools/build/tasks Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 106
106
:main-args [(.getCanonicalPath compile-script)]}))
107
107
(select-keys params [:out :err :out-file :err-file ]))
108
108
_ (spit (jio/file working-dir " compile.args" ) (str/join " " (:command-args process-args)))
109
- {exit :exit , ps-out :out , ps-err :err } (process/process process-args)]
109
+ {exit :exit , ps-out :out , ps-err :err } (process/process process-args)
110
+ ret (cond-> nil
111
+ ps-out (assoc :out ps-out)
112
+ ps-err (assoc :err ps-err))]
110
113
(if (zero? exit)
111
114
(do
112
115
(if (seq filter-nses)
113
116
(file/copy-contents working-compile-dir compile-dir-file (map ns->path filter-nses))
114
117
(file/copy-contents working-compile-dir compile-dir-file))
115
118
; ; only delete on success, otherwise leave the evidence!
116
119
(file/delete working-dir)
117
- (cond-> nil
118
- ps-out (assoc :out ps-out)
119
- ps-err (assoc :err ps-err)))
120
- (throw (ex-info (str " Clojure compilation failed, working dir preserved: " (.toString working-dir)) {})))))
120
+ ret)
121
+ (throw (ex-info (str " Clojure compilation failed, working dir preserved: " (.toString working-dir)) ret)))))
You can’t perform that action at this time.
0 commit comments