Merge branch 'master' of github.com:jboner/akka

This commit is contained in:
Viktor Klang 2011-05-05 13:25:53 +02:00
commit 02d8a51403
5 changed files with 52 additions and 23 deletions

1
.gitignore vendored
View file

@ -13,7 +13,6 @@ TAGS
akka.tmproj
reports
dist
build
target
deploy/*.jar
data

View file

@ -217,9 +217,11 @@ Here is an example of how to serialize an Actor.
.. code-block:: scala
import akka.serialization.RemoteActorSerialization._
val actor1 = actorOf[MyActor]
val bytes = toBinary(actor1)
val bytes = toRemoteActorRefProtocol(actor1).toByteArray
To deserialize the ``ActorRef`` to a ``RemoteActorRef`` you need to use the ``fromBinaryToRemoteActorRef(bytes: Array[Byte])`` method on the ``ActorRef`` companion object:

View file

@ -1,5 +1,5 @@
project.organization=se.scalablesolutions.akka
project.name=akka
project.version=1.1-SNAPSHOT
build.scala.versions=2.9.0.RC1
build.scala.versions=2.9.0.RC3
sbt.version=0.7.6.RC0

View file

@ -10,7 +10,7 @@ import sbt._
import sbt.CompileOrder._
import spde._
class AkkaParentProject(info: ProjectInfo) extends DefaultProject(info) with AutoCompilerPlugins {
class AkkaParentProject(info: ProjectInfo) extends ParentProject(info) with DocParentProject {
// -------------------------------------------------------------------------------------------------------------------
// Compile settings
@ -24,10 +24,6 @@ class AkkaParentProject(info: ProjectInfo) extends DefaultProject(info) with Aut
val javaCompileSettings = Seq("-Xlint:unchecked")
override def compileOptions = super.compileOptions ++ scalaCompileSettings.map(CompileOption)
override def javaCompileOptions = super.javaCompileOptions ++ javaCompileSettings.map(JavaCompileOption)
override def consoleOptions = super.consoleOptions ++ compileOptions("-P:continuations:enable")
// -------------------------------------------------------------------------------------------------------------------
// All repositories *must* go here! See ModuleConigurations below.
// -------------------------------------------------------------------------------------------------------------------
@ -61,7 +57,7 @@ class AkkaParentProject(info: ProjectInfo) extends DefaultProject(info) with Aut
lazy val jerseyModuleConfig = ModuleConfiguration("com.sun.jersey", JavaNetRepo)
lazy val multiverseModuleConfig = ModuleConfiguration("org.multiverse", CodehausRepo)
lazy val nettyModuleConfig = ModuleConfiguration("org.jboss.netty", JBossRepo)
lazy val scalaTestModuleConfig = ModuleConfiguration("org.scalatest", ScalaToolsSnapshotRepo)
lazy val scalaTestModuleConfig = ModuleConfiguration("org.scalatest", ScalaToolsRelRepo)
lazy val spdeModuleConfig = ModuleConfiguration("us.technically.spde", DatabinderRepo)
lazy val processingModuleConfig = ModuleConfiguration("org.processing", DatabinderRepo)
lazy val sjsonModuleConfig = ModuleConfiguration("net.debasishg", ScalaToolsRelRepo)
@ -78,7 +74,7 @@ class AkkaParentProject(info: ProjectInfo) extends DefaultProject(info) with Aut
lazy val JACKSON_VERSION = "1.7.1"
lazy val JERSEY_VERSION = "1.3"
lazy val MULTIVERSE_VERSION = "0.6.2"
lazy val SCALATEST_VERSION = "1.4-SNAPSHOT"
lazy val SCALATEST_VERSION = "1.4.RC3"
lazy val JETTY_VERSION = "7.4.0.v20110414"
lazy val JAVAX_SERVLET_VERSION = "3.0"
lazy val SLF4J_VERSION = "1.6.0"
@ -123,8 +119,8 @@ class AkkaParentProject(info: ProjectInfo) extends DefaultProject(info) with Aut
lazy val protobuf = "com.google.protobuf" % "protobuf-java" % "2.3.0" % "compile" //New BSD
lazy val sjson = "net.debasishg" % "sjson_2.9.0.RC3" % "0.11" % "compile" //ApacheV2
lazy val sjson_test = "net.debasishg" % "sjson_2.9.0.RC3" % "0.11" % "test" //ApacheV2
lazy val sjson = "net.debasishg" %% "sjson" % "0.11" % "compile" //ApacheV2
lazy val sjson_test = "net.debasishg" %% "sjson" % "0.11" % "test" //ApacheV2
lazy val slf4j = "org.slf4j" % "slf4j-api" % SLF4J_VERSION
lazy val logback = "ch.qos.logback" % "logback-classic" % "0.9.28" % "runtime"
@ -138,7 +134,7 @@ class AkkaParentProject(info: ProjectInfo) extends DefaultProject(info) with Aut
lazy val junit = "junit" % "junit" % "4.5" % "test" //Common Public License 1.0
lazy val mockito = "org.mockito" % "mockito-all" % "1.8.1" % "test" //MIT
lazy val scalatest = "org.scalatest" % "scalatest" % SCALATEST_VERSION % "test" //ApacheV2
lazy val scalatest = "org.scalatest" %% "scalatest" % SCALATEST_VERSION % "test" //ApacheV2
}
// -------------------------------------------------------------------------------------------------------------------
@ -162,15 +158,15 @@ class AkkaParentProject(info: ProjectInfo) extends DefaultProject(info) with Aut
override def disableCrossPaths = true
//Exclude slf4j1.5.11 from the classpath, it's conflicting...
override def fullClasspath(config: Configuration): PathFinder = {
super.fullClasspath(config) ---
(super.fullClasspath(config) ** "slf4j*1.5.11.jar")
}
// -------------------------------------------------------------------------------------------------------------------
// Scaladocs
// -------------------------------------------------------------------------------------------------------------------
// ------------------------------------------------------------
override def docProjectDependencies = dependencies.toList - akka_samples
// -------------------------------------------------------------------------------------------------------------------
// Publishing
// ------------------------------------------------------------
// -------------------------------------------------------------------------------------------------------------------
override def managedStyle = ManagedStyle.Maven
@ -207,9 +203,9 @@ class AkkaParentProject(info: ProjectInfo) extends DefaultProject(info) with Aut
override def deliverProjectDependencies = super.deliverProjectDependencies.toList - akka_samples.projectID - akka_tutorials.projectID
// ------------------------------------------------------------
// -------------------------------------------------------------------------------------------------------------------
// Build release
// ------------------------------------------------------------
// -------------------------------------------------------------------------------------------------------------------
val localReleasePath = outputPath / "release" / version.toString
val localReleaseRepository = Resolver.file("Local Release", localReleasePath / "repository" asFile)
@ -309,7 +305,7 @@ class AkkaParentProject(info: ProjectInfo) extends DefaultProject(info) with Aut
}
// -------------------------------------------------------------------------------------------------------------------
// Examples
// Samples
// -------------------------------------------------------------------------------------------------------------------
class AkkaSampleAntsProject(info: ProjectInfo) extends DefaultSpdeProject(info) {

View file

@ -0,0 +1,32 @@
import sbt._
trait DocParentProject extends ParentProject {
def docOutputPath = outputPath / "doc" / "main" / "api"
def docProjectDependencies = topologicalSort.dropRight(1)
def docMainSources =
docProjectDependencies.map {
case sp: ScalaPaths => sp.mainSources
case _ => Path.emptyPathFinder
}.foldLeft(Path.emptyPathFinder)(_ +++ _)
def docCompileClasspath =
docProjectDependencies.map {
case bsp: BasicScalaProject => bsp.compileClasspath
case _ => Path.emptyPathFinder
}.foldLeft(Path.emptyPathFinder)(_ +++ _)
def docLabel = "main"
def docMaxErrors = 100
def docOptions: Seq[String] = Seq.empty
lazy val doc = docAction describedAs ("Create combined scaladoc for all subprojects")
def docAction = task {
val scaladoc = new Scaladoc(docMaxErrors, buildCompiler)
scaladoc(docLabel, docMainSources.get, docCompileClasspath.get, docOutputPath, docOptions, log)
}
}