From f3ae07156929d63444e45f444d297a9bbbd1a5f8 Mon Sep 17 00:00:00 2001 From: Dean Wampler Date: Wed, 20 Apr 2011 16:24:16 -0400 Subject: [PATCH] Minor refinements. --- .gitignore | 1 + .../code-examples/actors/.idea/misc.xml | 3 + .../code-examples/actors/.idea/workspace.xml | 159 +++++------------- .../actors/project/build/ActorExample.scala | 3 +- .../actors/src/main/resources/akka.conf | 2 +- .../src/main/scala/ShapesDrawingActor.scala | 2 +- 6 files changed, 53 insertions(+), 117 deletions(-) diff --git a/.gitignore b/.gitignore index 5102ce0..1a650f0 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ src_managed/ boot/ logs/ *.class +.scala_dependencies diff --git a/SeductionsOfScala/code-examples/actors/.idea/misc.xml b/SeductionsOfScala/code-examples/actors/.idea/misc.xml index d0ff70f..94a57e4 100644 --- a/SeductionsOfScala/code-examples/actors/.idea/misc.xml +++ b/SeductionsOfScala/code-examples/actors/.idea/misc.xml @@ -23,6 +23,9 @@ + + http://www.w3.org/1999/xhtml + diff --git a/SeductionsOfScala/code-examples/actors/.idea/workspace.xml b/SeductionsOfScala/code-examples/actors/.idea/workspace.xml index b1e402a..502c998 100644 --- a/SeductionsOfScala/code-examples/actors/.idea/workspace.xml +++ b/SeductionsOfScala/code-examples/actors/.idea/workspace.xml @@ -68,10 +68,10 @@ - + - + @@ -86,10 +86,10 @@ - + - + @@ -123,6 +123,7 @@ @@ -156,6 +157,9 @@ + + + @@ -195,88 +199,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -330,17 +252,18 @@ - - - + + + + @@ -442,37 +365,39 @@ + 1303267042788 1303267042788 - + - - + - + - + + @@ -508,48 +433,54 @@ - + - - - + - + - - - + - + - - - + - + - - - + - + - + - + - + + + + + + + + + + + + + + + diff --git a/SeductionsOfScala/code-examples/actors/project/build/ActorExample.scala b/SeductionsOfScala/code-examples/actors/project/build/ActorExample.scala index d1c0cd6..35f5e6f 100644 --- a/SeductionsOfScala/code-examples/actors/project/build/ActorExample.scala +++ b/SeductionsOfScala/code-examples/actors/project/build/ActorExample.scala @@ -2,7 +2,8 @@ import sbt._ import sbt.CompileOrder._ import de.element34.sbteclipsify._ -class ActorExample(info: ProjectInfo) extends DefaultProject(info) with AkkaProject with IdeaProject with Eclipsify with Exec { +class ActorExample(info: ProjectInfo) extends DefaultProject(info) + with AkkaProject with IdeaProject with Eclipsify with Exec { lazy val EmbeddedRepo = MavenRepository("Embedded Repo", (info.projectPath / "embedded-repo").asURL.toString) lazy val LocalMavenRepo = MavenRepository("Local Maven Repo", (Path.userHome / ".m2" / "repository").asURL.toString) diff --git a/SeductionsOfScala/code-examples/actors/src/main/resources/akka.conf b/SeductionsOfScala/code-examples/actors/src/main/resources/akka.conf index f726830..86ff2c3 100644 --- a/SeductionsOfScala/code-examples/actors/src/main/resources/akka.conf +++ b/SeductionsOfScala/code-examples/actors/src/main/resources/akka.conf @@ -20,7 +20,7 @@ # FQN to the class doing initial active object/actorsupervisor bootstrap, etc., # which does its work in the default constructor. # "AWSE" ==> "AkkaWebSampleExercise" - boot = ["org.chicagoscala.awse.boot.BootAWSE"] + boot = ["org.Boot"] timeout = 1000 # default timeout for future based invocations diff --git a/SeductionsOfScala/code-examples/actors/src/main/scala/ShapesDrawingActor.scala b/SeductionsOfScala/code-examples/actors/src/main/scala/ShapesDrawingActor.scala index 1c4633a..296037d 100644 --- a/SeductionsOfScala/code-examples/actors/src/main/scala/ShapesDrawingActor.scala +++ b/SeductionsOfScala/code-examples/actors/src/main/scala/ShapesDrawingActor.scala @@ -9,7 +9,7 @@ class ShapeDrawingActor extends Actor { s.draw() self.reply("Shape drawn.") - case "exit" => + case "exit" => println("-> exiting...") self.reply("good bye!")