Make javac respect LEIN_SILENT.

This commit is contained in:
Caleb Spare 2017-04-18 16:23:57 -07:00
parent 92160ebaf7
commit 0452dd7900
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
~set-agent-threadpool-form
(doseq [~ns-sym '~namespaces]
~(if main/*info*
~(when main/*info*
`(binding [*out* *err*]
(println "Compiling" ~ns-sym)))
(try

View file

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