ScriptingDriver

replpp.scripting.ScriptingDriver
See theScriptingDriver companion object
class ScriptingDriver(compilerArgs: Array[String], predefFiles: Seq[Path], scriptFile: Path, scriptArgs: Array[String], verbose: Boolean)

Runs a given script on the current JVM.

Similar to dotty.tools.scripting.ScriptingDriver, but simpler and faster. Main difference: we don't (need to) recursively look for main method entrypoints in the entire classpath, because we have a fixed class and method name that ScriptRunner uses when it embeds the script and predef code.

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def compileAndRun(): Option[Throwable]

Concrete fields

val wrappedScript: Path