add method to sbt.Run for compatibility with 0.5.6

This commit is contained in:
Mark Harrah 2010-02-06 12:49:37 -05:00
parent 04c73ab1f0
commit 744ed69653
1 changed files with 2 additions and 0 deletions

View File

@ -48,6 +48,8 @@ class Run(compiler: xsbt.AnalyzingCompiler) extends ScalaRun
/** This module is an interface to starting the scala interpreter or runner.*/
object Run
{
def run(mainClass: String, classpath: Iterable[Path], options: Seq[String], log: Logger)(implicit runner: ScalaRun) =
runner.run(mainClass, classpath, options, log)
/** Executes the given function, trapping calls to System.exit. */
private[sbt] def executeTrapExit(f: => Unit, log: Logger): Option[String] =
{