8055039: Sjavac does not print compilation errors to the console

Sjavac (client) now prints the result of the compilation on stdout/stderr.

Reviewed-by: jfranck
This commit is contained in:
Andreas Lundblad 2014-08-14 14:17:17 +02:00
parent 0683c8dbb0
commit b9781a6764

View File

@ -246,6 +246,8 @@ public class CompileJavaPackages implements Transformer {
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 @@ public class CompileJavaPackages implements Transformer {
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;
}
}