Merge pull request #2267 from liftoffio/javac-silent

Make javac respect LEIN_SILENT.
This commit is contained in:
Phil Hagelberg 2017-04-18 16:40:18 -07:00 committed by GitHub
commit b79b25d0f7
2 changed files with 4 additions and 3 deletions

View file

@ -151,7 +151,7 @@ Code that should run on startup belongs in a -main defn."
form `(do form `(do
~set-agent-threadpool-form ~set-agent-threadpool-form
(doseq [~ns-sym '~namespaces] (doseq [~ns-sym '~namespaces]
~(if main/*info* ~(when main/*info*
`(binding [*out* *err*] `(binding [*out* *err*]
(println "Compiling" ~ns-sym))) (println "Compiling" ~ns-sym)))
(try (try

View file

@ -88,8 +88,9 @@
(java.lang.System/exit 1))] (java.lang.System/exit 1))]
(if-let [compiler# (javax.tools.ToolProvider/getSystemJavaCompiler)] (if-let [compiler# (javax.tools.ToolProvider/getSystemJavaCompiler)]
(do (do
(binding [*out* *err*] ~(when main/*info*
(println "Compiling" ~(count files) "source files to" ~compile-path)) `(binding [*out* *err*]
(println "Compiling" ~(count files) "source files to" ~compile-path)))
(.mkdirs (clojure.java.io/file ~compile-path)) (.mkdirs (clojure.java.io/file ~compile-path))
(when-not (zero? (when-not (zero?
(.run compiler# nil nil nil (.run compiler# nil nil nil