From b513e5716f52d08fd49f00a362a1b4c4723abfe4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Bon=C3=A9r?= Date: Thu, 1 Apr 2010 23:02:13 +0200 Subject: [PATCH] cleaned up --- akka-core/src/main/scala/actor/Actor.scala | 5 - project/build/AkkaProject.scala | 136 ++++++++++----------- 2 files changed, 68 insertions(+), 73 deletions(-) diff --git a/akka-core/src/main/scala/actor/Actor.scala b/akka-core/src/main/scala/actor/Actor.scala index e0c6de0f5c..6a6fc5368b 100644 --- a/akka-core/src/main/scala/actor/Actor.scala +++ b/akka-core/src/main/scala/actor/Actor.scala @@ -220,9 +220,6 @@ object Actor extends Logging { * @author Jonas Bonér */ trait Actor extends TransactionManagement with Logging { - implicit protected val self: Option[Actor] = Some(this) - implicit protected val transactionFamilyName: String = this.getClass.getName - // Only mutable for RemoteServer in order to maintain identity across nodes private[akka] var _uuid = UUID.newUuid.toString @@ -1049,8 +1046,6 @@ trait Actor extends TransactionManagement with Logging { !message.isInstanceOf[List[_]] && !message.isInstanceOf[scala.collection.immutable.Map[_, _]] && !message.isInstanceOf[scala.collection.immutable.Set[_]] && - //Removed in Scala 2.8 - //!message.isInstanceOf[scala.collection.immutable.Tree[_, _]] && !message.getClass.isAnnotationPresent(Annotations.immutable)) { Serializer.Java.deepClone(message) } else message diff --git a/project/build/AkkaProject.scala b/project/build/AkkaProject.scala index 219f423b88..ec4e4e0224 100644 --- a/project/build/AkkaProject.scala +++ b/project/build/AkkaProject.scala @@ -44,6 +44,14 @@ import java.io.File class AkkaParent(info: ProjectInfo) extends DefaultProject(info) { // ------------------------------------------------------------ + // project versions + val JERSEY_VERSION = "1.1.5" + val ATMO_VERSION = "0.5.4" + val CASSANDRA_VERSION = "0.5.0" + val LIFT_VERSION = "2.0-scala280-SNAPSHOT" + val SCALATEST_VERSION = "1.0.1-for-scala-2.8.0.Beta1-with-test-interfaces-0.3-SNAPSHOT" + + // ------------------------------------------------------------ lazy val akkaHome = { val home = System.getenv("AKKA_HOME") if (home == null) throw new Error( @@ -59,38 +67,45 @@ class AkkaParent(info: ProjectInfo) extends DefaultProject(info) { def distName = "%s_%s-%s.zip".format(name, buildScalaVersion, version) - // These lines need to be here instead of in DefaultProject to be able to resolve project.name in build.properties - val sourceArtifact = Artifact(artifactID, "src", "jar", Some("src"), Nil, None) - val docsArtifact = Artifact(artifactID, "docs", "jar", Some("doc"), Nil, None) - lazy val dist = zipTask(allArtifacts, "dist", distName) dependsOn (`package`) describedAs("Zips up the distribution.") // ------------------------------------------------------------ - // publishing - override def managedStyle = ManagedStyle.Maven - def publishTo = Resolver.file("maven-local", Path.userHome / ".m2" / "repository" asFile) + // repositories + val embeddedrepo = "embedded repo" at new File(akkaHome, "embedded-repo").toURI.toString + val sunjdmk = "sunjdmk" at "http://wp5.e-taxonomy.eu/cdmlib/mavenrepo" + val databinder = "DataBinder" at "http://databinder.net/repo" + // val configgy = "Configgy" at "http://www.lag.net/repo" + val codehaus = "Codehaus" at "http://repository.codehaus.org" + val codehaus_snapshots = "Codehaus Snapshots" at "http://snapshots.repository.codehaus.org" + val jboss = "jBoss" at "http://repository.jboss.org/maven2" + val guiceyfruit = "GuiceyFruit" at "http://guiceyfruit.googlecode.com/svn/repo/releases/" + val google = "google" at "http://google-maven-repository.googlecode.com/svn/repository" + val m2 = "m2" at "http://download.java.net/maven/2" + val scala_tools_snapshots = "scala-tools snapshots" at "http://scala-tools.org/repo-snapshots" - // Credentials(Path.userHome / ".akka_publish_credentials", log) + // ------------------------------------------------------------ + // project defintions + lazy val akka_java_util = project("akka-util-java", "akka-util-java", new AkkaJavaUtilProject(_)) + lazy val akka_util = project("akka-util", "akka-util", new AkkaUtilProject(_)) + lazy val akka_core = project("akka-core", "akka-core", new AkkaCoreProject(_), akka_util, akka_java_util) + lazy val akka_amqp = project("akka-amqp", "akka-amqp", new AkkaAMQPProject(_), akka_core) + lazy val akka_rest = project("akka-rest", "akka-rest", new AkkaRestProject(_), akka_core) + lazy val akka_comet = project("akka-comet", "akka-comet", new AkkaCometProject(_), akka_rest) + lazy val akka_camel = project("akka-camel", "akka-camel", new AkkaCamelProject(_), akka_core) + lazy val akka_patterns = project("akka-patterns", "akka-patterns", new AkkaPatternsProject(_), akka_core) + lazy val akka_security = project("akka-security", "akka-security", new AkkaSecurityProject(_), akka_core) + lazy val akka_persistence = project("akka-persistence", "akka-persistence", new AkkaPersistenceParentProject(_)) + lazy val akka_cluster = project("akka-cluster", "akka-cluster", new AkkaClusterParentProject(_)) + lazy val akka_spring = project("akka-spring", "akka-spring", new AkkaSpringProject(_), akka_core) + lazy val akka_kernel = project("akka-kernel", "akka-kernel", new AkkaKernelProject(_), + akka_core, akka_rest, akka_spring, akka_camel, akka_persistence, + akka_cluster, akka_amqp, akka_security, akka_comet, akka_patterns) - override def documentOptions = encodingUtf8.map(SimpleDocOption(_)) - override def packageDocsJar = defaultJarPath("-doc.jar") - override def packageSrcJar= defaultJarPath("-src.jar") - override def packageToPublishActions = super.packageToPublishActions ++ Seq(packageDocs, packageSrc) + // functional tests in java + lazy val akka_fun_test = project("akka-fun-test-java", "akka-fun-test-java", new AkkaFunTestProject(_), akka_kernel) - override def pomExtra = - 2009 - http://akkasource.org - - Scalable Solutions AB - http://scalablesolutions.se - - - - Apache 2 - http://www.apache.org/licenses/LICENSE-2.0.txt - repo - - + // examples + lazy val akka_samples = project("akka-samples", "akka-samples", new AkkaSamplesParentProject(_)) // ------------------------------------------------------------ // create executable jar @@ -131,51 +146,36 @@ class AkkaParent(info: ProjectInfo) extends DefaultProject(info) { ) // ------------------------------------------------------------ - // project versions - val JERSEY_VERSION = "1.1.5" - val ATMO_VERSION = "0.5.4" - val CASSANDRA_VERSION = "0.5.0" - val LIFT_VERSION = "2.0-scala280-SNAPSHOT" - val SCALATEST_VERSION = "1.0.1-for-scala-2.8.0.Beta1-with-test-interfaces-0.3-SNAPSHOT" - - // ------------------------------------------------------------ - // repositories - val embeddedrepo = "embedded repo" at new File(akkaHome, "embedded-repo").toURI.toString - val sunjdmk = "sunjdmk" at "http://wp5.e-taxonomy.eu/cdmlib/mavenrepo" - val databinder = "DataBinder" at "http://databinder.net/repo" - // val configgy = "Configgy" at "http://www.lag.net/repo" - val codehaus = "Codehaus" at "http://repository.codehaus.org" - val codehaus_snapshots = "Codehaus Snapshots" at "http://snapshots.repository.codehaus.org" - val jboss = "jBoss" at "http://repository.jboss.org/maven2" - val guiceyfruit = "GuiceyFruit" at "http://guiceyfruit.googlecode.com/svn/repo/releases/" - val google = "google" at "http://google-maven-repository.googlecode.com/svn/repository" - val m2 = "m2" at "http://download.java.net/maven/2" - val scala_tools_snapshots = "scala-tools snapshots" at "http://scala-tools.org/repo-snapshots" + // publishing + override def managedStyle = ManagedStyle.Maven + //override def defaultPublishRepository = Some(Resolver.file("maven-local", Path.userHome / ".m2" / "repository" asFile)) + val publishTo = Resolver.file("maven-local", Path.userHome / ".m2" / "repository" asFile) - // ------------------------------------------------------------ - // project defintions - lazy val akka_java_util = project("akka-util-java", "akka-util-java", new AkkaJavaUtilProject(_)) - lazy val akka_util = project("akka-util", "akka-util", new AkkaUtilProject(_)) - lazy val akka_core = project("akka-core", "akka-core", new AkkaCoreProject(_), akka_util, akka_java_util) - lazy val akka_amqp = project("akka-amqp", "akka-amqp", new AkkaAMQPProject(_), akka_core) - lazy val akka_rest = project("akka-rest", "akka-rest", new AkkaRestProject(_), akka_core) - lazy val akka_comet = project("akka-comet", "akka-comet", new AkkaCometProject(_), akka_rest) - lazy val akka_camel = project("akka-camel", "akka-camel", new AkkaCamelProject(_), akka_core) - lazy val akka_patterns = project("akka-patterns", "akka-patterns", new AkkaPatternsProject(_), akka_core) - lazy val akka_security = project("akka-security", "akka-security", new AkkaSecurityProject(_), akka_core) - lazy val akka_persistence = project("akka-persistence", "akka-persistence", new AkkaPersistenceParentProject(_)) - lazy val akka_cluster = project("akka-cluster", "akka-cluster", new AkkaClusterParentProject(_)) - lazy val akka_spring = project("akka-spring", "akka-spring", new AkkaSpringProject(_), akka_core) - lazy val akka_kernel = project("akka-kernel", "akka-kernel", new AkkaKernelProject(_), - akka_core, akka_rest, akka_spring, akka_camel, akka_persistence, - akka_cluster, akka_amqp, akka_security, akka_comet, akka_patterns) + val sourceArtifact = Artifact(artifactID, "src", "jar", Some("src"), Nil, None) + val docsArtifact = Artifact(artifactID, "docs", "jar", Some("doc"), Nil, None) - // functional tests in java - lazy val akka_fun_test = project("akka-fun-test-java", "akka-fun-test-java", new AkkaFunTestProject(_), akka_kernel) + // Credentials(Path.userHome / ".akka_publish_credentials", log) + + //override def documentOptions = encodingUtf8.map(SimpleDocOption(_)) + override def packageDocsJar = defaultJarPath("-doc.jar") + override def packageSrcJar= defaultJarPath("-src.jar") + override def packageToPublishActions = super.packageToPublishActions ++ Seq(packageDocs, packageSrc) + + override def pomExtra = + 2009 + http://akkasource.org + + Scalable Solutions AB + http://scalablesolutions.se + + + + Apache 2 + http://www.apache.org/licenses/LICENSE-2.0.txt + repo + + - // examples - lazy val akka_samples = project("akka-samples", "akka-samples", new AkkaSamplesParentProject(_)) - // ------------------------------------------------------------ // subprojects class AkkaCoreProject(info: ProjectInfo) extends DefaultProject(info) {