diff options
author | michelou <michelou@epfl.ch> | 2010-12-08 18:28:43 +0000 |
---|---|---|
committer | michelou <michelou@epfl.ch> | 2010-12-08 18:28:43 +0000 |
commit | 4dbe72f83f7ade1517bad7444009d3d0c8a69bd5 (patch) | |
tree | 73a4ec0fe6c99dea6d0ac033774575f127671769 /test/files/detach-run/actor/ServerConsole.scala | |
parent | 6e15632fcbcb8578b30850ee93b3d3d8c9f3e7b9 (diff) | |
download | scala-4dbe72f83f7ade1517bad7444009d3d0c8a69bd5.tar.gz scala-4dbe72f83f7ade1517bad7444009d3d0c8a69bd5.tar.bz2 scala-4dbe72f83f7ade1517bad7444009d3d0c8a69bd5.zip |
minor code updates (detach plugin)
Diffstat (limited to 'test/files/detach-run/actor/ServerConsole.scala')
-rw-r--r-- | test/files/detach-run/actor/ServerConsole.scala | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/test/files/detach-run/actor/ServerConsole.scala b/test/files/detach-run/actor/ServerConsole.scala index f68274e927..d38725ddee 100644 --- a/test/files/detach-run/actor/ServerConsole.scala +++ b/test/files/detach-run/actor/ServerConsole.scala @@ -1,4 +1,8 @@ -import java.io._ +/* + * @author Stephane Micheloud + */ + +import java.io.{BufferedReader, InputStreamReader} import scala.compat.Platform.currentTime import scala.remoting.Debug, Debug._ @@ -15,7 +19,7 @@ trait ServerConsole extends Thread { import java.rmi.server.RMIClassLoader val codebase = System.getProperty("java.rmi.server.codebase") info("[ServerConsole] codebase="+codebase) - RMIClassLoader.getClassLoader(codebase) + RMIClassLoader getClassLoader codebase } private var isTerminated = false @@ -44,7 +48,7 @@ trait ServerConsole extends Thread { } terminate() println("Server exited ("+mkTimeString(currentTime - startTime)+")") - exit(0) + system.exit(0) } protected def trace(msg: String) { |