CommonRunner

This is a copy implementation from scala/scala scala.tools.nsc.CommonRunner trait

class Object
trait Matchable
class Any
object ObjectRunner.type

Value members

Concrete methods

def run(urls: Seq[URL], objectName: String, arguments: Seq[String]): Unit

Run a given object, specified by name, using a specified classpath and argument list.

Run a given object, specified by name, using a specified classpath and argument list.

def runAndCatch(urls: Seq[URL], objectName: String, arguments: Seq[String]): Option[Throwable]

Catches any non-fatal exception thrown by run (in the case of InvocationTargetException, unwrapping it) and returns it in an Option.

Catches any non-fatal exception thrown by run (in the case of InvocationTargetException, unwrapping it) and returns it in an Option.