Abort task chaining if Java sources compilation (lein javac) fails
Fixes #658
This commit is contained in:
parent
82d812eccb
commit
081f77857f
1 changed files with 2 additions and 1 deletions
|
@ -81,7 +81,8 @@
|
||||||
(do
|
(do
|
||||||
(main/info "Compiling" (count files) "source files to" compile-path)
|
(main/info "Compiling" (count files) "source files to" compile-path)
|
||||||
(.mkdirs (io/file compile-path))
|
(.mkdirs (io/file compile-path))
|
||||||
(.run compiler nil nil nil (javac-options project files args)))
|
(when-not (zero? (.run compiler nil nil nil (javac-options project files args)))
|
||||||
|
(main/abort "Compilation of Java sources failed, aborting.")))
|
||||||
(main/abort "lein-javac: system java compiler not found;"
|
(main/abort "lein-javac: system java compiler not found;"
|
||||||
"a JDK (vs. JRE) install is required.")))))
|
"a JDK (vs. JRE) install is required.")))))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue