diff options
author | Martin Odersky <odersky@gmail.com> | 2006-07-12 13:05:13 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2006-07-12 13:05:13 +0000 |
commit | 8592375f95a644f0bae55b4ce9215b4533cba2d4 (patch) | |
tree | 4dc29cb2a7c56c3c7c47da9d3b643646b952959f /src/compiler/scala/tools/nsc/CompileClient.scala | |
parent | b53dced1215bffa82ae3f4aa38f614e4a0f48a7d (diff) | |
download | scala-8592375f95a644f0bae55b4ce9215b4533cba2d4.tar.gz scala-8592375f95a644f0bae55b4ce9215b4533cba2d4.tar.bz2 scala-8592375f95a644f0bae55b4ce9215b4533cba2d4.zip |
Made fsc safer and scriptable
Fixed position errors for imported prefixes
Fixed symbol literals (bug369)
Diffstat (limited to 'src/compiler/scala/tools/nsc/CompileClient.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/CompileClient.scala | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/compiler/scala/tools/nsc/CompileClient.scala b/src/compiler/scala/tools/nsc/CompileClient.scala index 7e8d3b642e..de780a9c70 100644 --- a/src/compiler/scala/tools/nsc/CompileClient.scala +++ b/src/compiler/scala/tools/nsc/CompileClient.scala @@ -57,7 +57,7 @@ object CompileClient { def main(args: Array[String]): unit = { val Pair(vmArgs, serverAdr) = normalize(args) - if (args exists ("-verbose" ==)) { + if (args.toList contains "-verbose") { System.out.println("[Server arguments: " + args.mkString("", " ", "]")) System.out.println("[VM arguments: " + vmArgs + "]") } @@ -65,7 +65,8 @@ object CompileClient { else CompileSocket.getSocket(serverAdr) val out = new PrintWriter(socket.getOutputStream(), true) val in = new BufferedReader(new InputStreamReader(socket.getInputStream())) - out.println(args.mkString("", " ", "")) + out.println(CompileSocket.getPassWord(socket.getPort())) + out.println(args.mkString("", "\0", "")) var fromServer = in.readLine() while (fromServer != null) { System.out.println(fromServer) |