equal
deleted
inserted
replaced
227 for (Path p : sources) { |
227 for (Path p : sources) { |
228 args.add(p.toString()); |
228 args.add(p.toString()); |
229 if (p.toString().endsWith(".scala")) { scala_sources = true; } |
229 if (p.toString().endsWith(".scala")) { scala_sources = true; } |
230 } |
230 } |
231 if (scala_sources) { |
231 if (scala_sources) { |
232 boolean ok = false; |
|
233 |
|
234 InputStream in_orig = System.in; |
232 InputStream in_orig = System.in; |
235 PrintStream out_orig = System.out; |
233 PrintStream out_orig = System.out; |
236 PrintStream err_orig = System.err; |
234 PrintStream err_orig = System.err; |
237 ByteArrayInputStream in = new ByteArrayInputStream(new byte[0]); |
235 ByteArrayInputStream in = new ByteArrayInputStream(new byte[0]); |
238 ByteArrayOutputStream out = new ByteArrayOutputStream(); |
236 ByteArrayOutputStream out = new ByteArrayOutputStream(); |
239 |
237 |
240 // Single-threaded context! |
238 // Single-threaded context! |
|
239 boolean ok = false; |
241 try { |
240 try { |
242 PrintStream out_stream = new PrintStream(out); |
241 PrintStream out_stream = new PrintStream(out); |
243 System.setIn(in); |
242 System.setIn(in); |
244 System.setOut(out_stream); |
243 System.setOut(out_stream); |
245 System.setErr(out_stream); |
244 System.setErr(out_stream); |