diff --git a/sbt/src/sbt-test/compiler-project/run2.8/build.sbt b/sbt/src/sbt-test/compiler-project/run2.8/build.sbt deleted file mode 100644 index 159ac76e6..000000000 --- a/sbt/src/sbt-test/compiler-project/run2.8/build.sbt +++ /dev/null @@ -1,5 +0,0 @@ -scalaVersion := "2.8.1" - -libraryDependencies += "org.scala-tools.testing" %% "specs" % "1.6.7.2" % "test" - -libraryDependencies <+= scalaVersion("org.scala-lang" % "scala-compiler" % _) \ No newline at end of file diff --git a/sbt/src/sbt-test/compiler-project/run2.8/src/main/scala/Foo.scala b/sbt/src/sbt-test/compiler-project/run2.8/src/main/scala/Foo.scala deleted file mode 100644 index b5ea08ac8..000000000 --- a/sbt/src/sbt-test/compiler-project/run2.8/src/main/scala/Foo.scala +++ /dev/null @@ -1,40 +0,0 @@ -package foo.bar - -import java.io.File -import File.{pathSeparator => / } -import scala.io.Source - -class Holder { var value: Any = _ } - -import scala.tools.nsc.{GenericRunnerSettings, Interpreter, Settings} - -class Foo { - val g = new GenericRunnerSettings(System.err.println) - val settings = new Settings() - val loader = getClass.getClassLoader - settings.classpath.value = classpath("app", loader).getOrElse(error("Error: could not find application classpath")) - settings.bootclasspath.value = settings.bootclasspath.value + / + classpath("boot", loader).getOrElse(error("Error: could not find boot classpath")) - val inter = new Interpreter(settings) { - override protected def parentClassLoader = Foo.this.getClass.getClassLoader - } - def eval(code: String): Any = { - val h = new Holder - inter.bind("$r_", h.getClass.getName, h) - val r = inter.interpret("$r_.value = " + code) - h.value - } - - private def classpath(name: String, loader: ClassLoader) = - Option(loader.getResource(name + ".class.path")).map { cp => - Source.fromURL(cp).mkString - } -} - -object Test -{ - def main(args: Array[String]) - { - val foo = new Foo - args.foreach { arg => foo.eval(arg) == arg.toInt } - } -} \ No newline at end of file diff --git a/sbt/src/sbt-test/compiler-project/run2.8/src/test/scala/ATest.scala b/sbt/src/sbt-test/compiler-project/run2.8/src/test/scala/ATest.scala deleted file mode 100644 index 639e44adc..000000000 --- a/sbt/src/sbt-test/compiler-project/run2.8/src/test/scala/ATest.scala +++ /dev/null @@ -1,14 +0,0 @@ -package foo.bar - -import org.specs._ - -class ATest extends Specification -{ - "application and boot classpath" should { - "be provided to running applications and tests" in { - val foo = new Foo - val numbers = List[Any](1,2,5, 19) - numbers.map(i => foo.eval(i.toString)) must haveTheSameElementsAs(numbers) - } - } -} \ No newline at end of file diff --git a/sbt/src/sbt-test/compiler-project/run2.8/test b/sbt/src/sbt-test/compiler-project/run2.8/test deleted file mode 100644 index 7c6f9c539..000000000 --- a/sbt/src/sbt-test/compiler-project/run2.8/test +++ /dev/null @@ -1 +0,0 @@ -> test:test \ No newline at end of file