summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/CompileSocket.scala
diff options
context:
space:
mode:
authorLex Spoon <lex@lexspoon.org>2006-09-21 15:05:27 +0000
committerLex Spoon <lex@lexspoon.org>2006-09-21 15:05:27 +0000
commit5fab489bd534909f78d514d57fe81298a56a2d27 (patch)
tree0daba1fc873e66a9cb939c2a971e150a8bc77034 /src/compiler/scala/tools/nsc/CompileSocket.scala
parent75beea5dd99905b2e5f55d83c6332bd0168bdea0 (diff)
downloadscala-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/CompileSocket.scala')
-rw-r--r--src/compiler/scala/tools/nsc/CompileSocket.scala6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/compiler/scala/tools/nsc/CompileSocket.scala b/src/compiler/scala/tools/nsc/CompileSocket.scala
index 18b64fdf2b..1c600a1a38 100644
--- a/src/compiler/scala/tools/nsc/CompileSocket.scala
+++ b/src/compiler/scala/tools/nsc/CompileSocket.scala
@@ -34,6 +34,12 @@ object CompileSocket {
/** The class name of the scala compile server */
private val serverClass = "scala.tools.nsc.CompileServer"
+ /** A regular expression for checking compiler output for errors */
+ val errorRegex = ".*errors? found.*"
+
+ /** A Pattern object for checking compiler output for errors */
+ val errorPattern = java.util.regex.Pattern.compile(errorRegex)
+
private def fatal(msg: String) = {
System.err.println(msg)
exit(1)