Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
ianoc-stripe committed Sep 12, 2016
1 parent e4b53aa commit 51b9251
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/java/io/bazel/rulesscala/scalac/ScalaCInvoker.java
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,7 @@
import java.util.List;
import java.util.Map.Entry;
import java.util.UUID;


import scala.Console$;
/**
* A class for creating Jar files. Allows normalization of Jar entries by setting their timestamp to
* the DOS epoch. All Jar entries are sorted alphabetically.
Expand Down Expand Up @@ -103,7 +102,8 @@ private static void runPersistentWorker(WorkerOptions workerOptions) throws IOEx
try (PrintStream ps = new PrintStream(baos)) {
System.setOut(ps);
System.setErr(ps);

Console$.MODULE$.setErrDirect(ps);
Console$.MODULE$.setOutDirect(ps);
try {
processRequest(request.getArgumentsList());
} catch (Exception e) {
Expand Down Expand Up @@ -298,7 +298,7 @@ private static void processRequest(List<String> args) throws Exception {
ConsoleReporter reporter = (ConsoleReporter) reporterField.get(comp);

if (reporter.hasErrors()) {
// reportErrors(reporter);
reporter.printSummary();
reporter.flush();
throw new RuntimeException("Build failed");
} else {
Expand Down

0 comments on commit 51b9251

Please sign in to comment.