From 7933fa5d0db5a65359fe291aed34fa5418f2d9e0 Mon Sep 17 00:00:00 2001 From: Roland Date: Thu, 7 Mar 2013 19:59:59 +0100 Subject: [PATCH] make config switchable in initialCommands for SBT console --- project/AkkaBuild.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/project/AkkaBuild.scala b/project/AkkaBuild.scala index 517adebe92..eb9a9fc117 100644 --- a/project/AkkaBuild.scala +++ b/project/AkkaBuild.scala @@ -596,8 +596,8 @@ object AkkaBuild extends Build { |import com.typesafe.config.ConfigFactory |import scala.concurrent.duration._ |import akka.util.Timeout - |val config = ConfigFactory.parseString("akka.stdout-loglevel=INFO,akka.loglevel=DEBUG,pinned{type=PinnedDispatcher,executor=thread-pool-executor,throughput=1000}") - |val remoteConfig = ConfigFactory.parseString("akka.remote.netty{port=0,use-dispatcher-for-io=akka.actor.default-dispatcher,execution-pool-size=0},akka.actor.provider=akka.remote.RemoteActorRefProvider").withFallback(config) + |var config = ConfigFactory.parseString("akka.stdout-loglevel=INFO,akka.loglevel=DEBUG,pinned{type=PinnedDispatcher,executor=thread-pool-executor,throughput=1000}") + |var remoteConfig = ConfigFactory.parseString("akka.remote.netty{port=0,use-dispatcher-for-io=akka.actor.default-dispatcher,execution-pool-size=0},akka.actor.provider=akka.remote.RemoteActorRefProvider").withFallback(config) |var system: ActorSystem = null |implicit def _system = system |def startSystem(remoting: Boolean = false) { system = ActorSystem("repl", if(remoting) remoteConfig else config); println("don’t forget to system.shutdown()!") }