From 960ce31287f826fa82aea226d9e03eac3821d767 Mon Sep 17 00:00:00 2001 From: Lex Spoon Date: Thu, 14 Jun 2007 21:47:37 +0000 Subject: Refactored ScriptRunner and the offline compila... Refactored ScriptRunner and the offline compilation classes so that they can be subclassed effectively. --- .../scala/tools/nsc/OfflineCompilerCommand.scala | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 src/compiler/scala/tools/nsc/OfflineCompilerCommand.scala (limited to 'src/compiler/scala/tools/nsc/OfflineCompilerCommand.scala') diff --git a/src/compiler/scala/tools/nsc/OfflineCompilerCommand.scala b/src/compiler/scala/tools/nsc/OfflineCompilerCommand.scala new file mode 100644 index 0000000000..6a132fc116 --- /dev/null +++ b/src/compiler/scala/tools/nsc/OfflineCompilerCommand.scala @@ -0,0 +1,28 @@ +/* NSC -- new Scala compiler + * Copyright 2005-2007 LAMP/EPFL + * @author Martin Odersky + */ +// $Id$ + +package scala.tools.nsc + +/** A compiler command for the offline compiler. + * + * @author Martin Odersky and Lex Spoon + */ +class OfflineCompilerCommand( + arguments: List[String], + settings: Settings, + error: String => Unit, + interactive: Boolean) +extends CompilerCommand(arguments, new Settings(error), error, false) +{ + override val cmdName = "fsc" + settings.disable(settings.prompt) + settings.disable(settings.resident) + new settings.BooleanSetting("-reset", "Reset compile server caches") + new settings.BooleanSetting("-shutdown", "Shutdown compile server") + new settings.StringSetting("-server", "hostname:portnumber", + "Specify compile server socket", "") + new settings.BooleanSetting("-J", "Pass directly to runtime system") +} -- cgit v1.2.3