OpenJDK / jdk / jdk12
changeset 26105:30e8bff3803b
8055039: Sjavac does not print compilation errors to the console
Summary: Sjavac (client) now prints the result of the compilation on stdout/stderr.
Reviewed-by: jfranck
author | alundblad |
---|---|
date | Thu, 14 Aug 2014 14:17:17 +0200 |
parents | 34de7e01b3c1 |
children | 8af1fa613176 |
files | langtools/src/share/classes/com/sun/tools/sjavac/CompileJavaPackages.java |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/langtools/src/share/classes/com/sun/tools/sjavac/CompileJavaPackages.java Thu Aug 14 13:05:49 2014 +0200 +++ b/langtools/src/share/classes/com/sun/tools/sjavac/CompileJavaPackages.java Thu Aug 14 14:17:17 2014 +0200 @@ -246,6 +246,8 @@ requests[ii].run(); // If there was an error, then stop early when running single threaded. if (rn[i].returnCode != 0) { + Log.info(rn[i].stdout); + Log.error(rn[i].stderr); return false; } } @@ -262,6 +264,8 @@ for (int i=0; i<numCompiles; ++i) { if (compileChunks[i].srcs.size() > 0) { if (rn[i].returnCode != 0) { + Log.info(rn[i].stdout); + Log.error(rn[i].stderr); rc = false; } }