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
~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