diff options
author | Lex Spoon <lex@lexspoon.org> | 2006-09-21 15:05:27 +0000 |
---|---|---|
committer | Lex Spoon <lex@lexspoon.org> | 2006-09-21 15:05:27 +0000 |
commit | 5fab489bd534909f78d514d57fe81298a56a2d27 (patch) | |
tree | 0daba1fc873e66a9cb939c2a971e150a8bc77034 /src/compiler/scala/tools/nsc/CompileClient.scala | |
parent | 75beea5dd99905b2e5f55d83c6332bd0168bdea0 (diff) | |
download | scala-5fab489bd534909f78d514d57fe81298a56a2d27.tar.gz scala-5fab489bd534909f78d514d57fe81298a56a2d27.tar.bz2 scala-5fab489bd534909f78d514d57fe81298a56a2d27.zip |
- check for errors when using the compilation d...
- check for errors when using the compilation daemon run scripts in
- package "$scalascript" instead of "scalascript"
Diffstat (limited to 'src/compiler/scala/tools/nsc/CompileClient.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/CompileClient.scala | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/compiler/scala/tools/nsc/CompileClient.scala b/src/compiler/scala/tools/nsc/CompileClient.scala index a9051c5767..552c4b3644 100644 --- a/src/compiler/scala/tools/nsc/CompileClient.scala +++ b/src/compiler/scala/tools/nsc/CompileClient.scala @@ -95,13 +95,18 @@ object CompileClient { val in = new BufferedReader(new InputStreamReader(socket.getInputStream())) out.println(CompileSocket.getPassword(socket.getPort())) out.println(args.mkString("", "\0", "")) + var sawerror = false var fromServer = in.readLine() while (fromServer != null) { + if(CompileSocket.errorPattern.matcher(fromServer).matches) + sawerror = true System.out.println(fromServer) fromServer = in.readLine() } in.close() out.close() socket.close() + + System.exit(if (sawerror) 1 else 0) } } |