开发者

Where to acquire jar that provides scala.tools.nsc.MainGenericRunner

I my Lift project I have a file called LiftConsole.scala. It was generated by project creation script and contains following

import _root_.bootstrap.liftweb.Boot
import _root_.scala.tools.nsc.MainGenericRunner

object LiftConsole {
  def main(args : Array[String]) {
    // Instantiate your project's Boot file
    val b = new Boot()
    // Boot your project
    b.boot
    // Now run the MainGenericRunner to get your repl
    MainGenericRunner.main(args)
    // After th开发者_StackOverflow中文版e repl exits, then exit the scala script
    exit(0)
  }
}

It seems that the purpose of this file is to let user interact with console from within the project. I'd like that, but I was never able to do this because I cannot find a jar for MainGenericRunner. Does anyone know where to get it?

My goal is to be able to initialize console will all project settings so I can execute project specific code.


It is part of scala-compiler.jar. You can find it with the rest of the Scala distribution. Add this to your project:

val scalaCompiler = "org.scala-lang" % "scala-compiler" % "2.8.1"
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜