~ Scala 2.10.0-M2
authortgambet
Sun, 29 Jan 2012 13:44:36 -0500
changeset 10 6b5140da5d38
parent 9 d423cd039a12
child 11 b58f03b2b493
~ Scala 2.10.0-M2
aRDF/patch-sbt
aRDF/project/build.scala
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/aRDF/patch-sbt	Sun Jan 29 13:44:36 2012 -0500
@@ -0,0 +1,15 @@
+#!/usr/bin/env bash
+
+# adapted from https://gist.github.com/1643715
+
+for i in $(find $HOME/.sbt/boot/scala-2.9.1/org.scala-tools.sbt/sbt/0.11.2/compiler-interface-src -name 'compiler-interface-src-0.11.*.jar'); do
+  t="${i%.jar}-tmp"
+  echo $t
+  unzip $i -d $t
+  cd $t
+  sed -i API.scala -e 's/sym.isLocalClass || sym.isAnonymousClass || sym.fullName.endsWith(LocalChild)/sym.isLocalClass || sym.isAnonymousClass || sym.fullName.endsWith(LocalChild.toString)/g'
+  rm $i
+  zip -r $i .
+  cd ..
+  rm -rf $t
+done
--- a/aRDF/project/build.scala	Sun Jan 22 18:52:57 2012 -0500
+++ b/aRDF/project/build.scala	Sun Jan 29 13:44:36 2012 -0500
@@ -8,33 +8,7 @@
   val buildSettings = Defaults.defaultSettings ++ Seq (
     organization := "org.w3",
     version      := "0.1",
-    scalaVersion := "2.9.1",
-    scalaHome    := Some {
-      val bin = file("bin")
-      def latest =
-        (bin.listFiles.toList filter {
-          _.getName startsWith "scala-2.10.0.r" } sortWith {
-            _.getName > _.getName })
-        .headOption
-      latest match {
-        case Some(scala) => {
-          logger.info("found nightly build of scala compiler: %s" format scala.getName)
-          scala
-        }
-        case None => {
-          val scalaLang = "http://www.scala-lang.org/archives/downloads/distrib/files/nightly/distributions/"
-          val jay = "http://jay.w3.org/~bertails/public/scala/"
-          val baseURL = jay
-          val scalaVersion = "scala-2.10.0.rdev-4005-2011-12-13-g278a225"
-          val u = url("%s%s.zip" format (jay, scalaVersion))
-          val zip = file("/tmp/%s.zip" format scalaVersion)
-          logger.info("downloading %s" format u.toString)
-          u #> zip !;
-          Process("unzip -o %s -d %s" format (zip.getAbsolutePath, bin.getAbsolutePath)) !;
-          latest getOrElse sys.error("couldn't download and set the latest scala compiler") 
-        }
-      }
-    },
+    scalaVersion := "2.10.0-M1",
     parallelExecution in Test := false,
     scalacOptions ++= Seq("-deprecation", "-unchecked", "-Yvirtpatmat", "-optimize")
   )
@@ -46,9 +20,14 @@
   import BuildSettings._
   
   val mySettings = Seq(
+    resolvers += "Typesafe Repository" at "http://repo.typesafe.com/typesafe/releases/",
     resolvers += "apache-repo-releases" at "http://repository.apache.org/content/repositories/releases/",
+//    resolvers += Resolver.url("Play", url("http://download.playframework.org/ivy-releases/"))(Resolver.ivyStylePatterns),
     libraryDependencies += "org.apache.jena" % "jena-arq" % "2.9.0-incubating",
-    libraryDependencies += "com.novocode" % "junit-interface" % "0.8" % "test"
+    libraryDependencies += "com.novocode" % "junit-interface" % "0.8" % "test",
+//    libraryDependencies += "com.typesafe" %% "play-mini" % "2.0-RC1-SNAPSHOT",
+//    mainClass in (Compile, run) := Some("play.core.server.NettyServer")
+    libraryDependencies += "com.typesafe.akka" % "akka-actor" % "2.0-M3"
   )
   
   lazy val project = Project(