Remove code no longer needed for running Scala code

This commit is contained in:
Mark Harrah 2010-03-07 19:06:54 -05:00
parent 56d64c88cc
commit 794d137051
2 changed files with 0 additions and 31 deletions

View File

@ -36,17 +36,6 @@ class AnalyzingCompiler(val scalaInstance: ScalaInstance, val manager: Component
val arguments = (new CompilerArguments(scalaInstance))(sources, classpath, outputDirectory, options, compilerOnClasspath)
call("xsbt.ScaladocInterface", log) (classOf[Array[String]], classOf[Int], classOf[xLogger]) (arguments.toArray[String] : Array[String], maximumErrors: java.lang.Integer, log)
}
def run(classpath: Set[File], mainClass: String, options: Seq[String], log: CompileLogger)
{
val arguments = new CompilerArguments(scalaInstance)
val classpathURLs = arguments.finishClasspath(classpath, true).toSeq
val bootClasspath = FileUtilities.pathSplit( arguments.createBootClasspath )
val extraURLs = bootClasspath.filter(_.length > 0).map(new File(_))
val classpathArray = (classpathURLs ++ extraURLs).map(_.toURI.toURL).toArray[URL]
call("xsbt.RunInterface", log)(classOf[Array[URL]], classOf[String], classOf[Array[String]], classOf[xLogger]) (
classpathArray : Array[URL], mainClass, options.toArray[String] : Array[String], log
)
}
def console(classpath: Set[File], initialCommands: String, log: CompileLogger): Unit =
{
val arguments = new CompilerArguments(scalaInstance)

View File

@ -1,20 +0,0 @@
/* sbt -- Simple Build Tool
* Copyright 2008, 2009 Mark Harrah
*/
package xsbt
import xsbti.Logger
import scala.tools.nsc.ObjectRunner
import java.net.URL
class RunInterface
{
def run(classpathURLs: Array[URL], mainClass: String, options: Array[String], log: Logger)
{
log.info(Message("Running " + mainClass + " " + options.mkString(" ")))
log.debug(Message(" Classpath:\n\t" + classpathURLs.mkString("\n\t")))
try { ObjectRunner.run(classpathURLs.toList, mainClass, options.toList) }
catch { case e: java.lang.reflect.InvocationTargetException => throw e.getCause }
}
}