summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/settings/FscSettings.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2011-02-08 08:47:29 +0000
committerPaul Phillips <paulp@improving.org>2011-02-08 08:47:29 +0000
commit3467ad57e4c2b56cdd02ce0c75af4716b5631a10 (patch)
treeaf5d632276e79a449e9971e94c25bec0c1fc73e4 /src/compiler/scala/tools/nsc/settings/FscSettings.scala
parentc89ea6e3ae82d9b6bacda25dceb74a958d2fa4f6 (diff)
downloadscala-3467ad57e4c2b56cdd02ce0c75af4716b5631a10.tar.gz
scala-3467ad57e4c2b56cdd02ce0c75af4716b5631a10.tar.bz2
scala-3467ad57e4c2b56cdd02ce0c75af4716b5631a10.zip
Working on fsc.
for me anyway, with this commit scripts will occasionally reuse a compiler instance, instead of never. Since any tests I write will fail on platforms which aren't mine, there are no tests. I might have to start a platform-specific testing area to break some ice around these huge untested zones. No review.
Diffstat (limited to 'src/compiler/scala/tools/nsc/settings/FscSettings.scala')
-rw-r--r--src/compiler/scala/tools/nsc/settings/FscSettings.scala29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/compiler/scala/tools/nsc/settings/FscSettings.scala b/src/compiler/scala/tools/nsc/settings/FscSettings.scala
new file mode 100644
index 0000000000..b7f0c553f6
--- /dev/null
+++ b/src/compiler/scala/tools/nsc/settings/FscSettings.scala
@@ -0,0 +1,29 @@
+/* NSC -- new Scala compiler
+ * Copyright 2005-2011 LAMP/EPFL
+ * @author Paul Phillips
+ */
+
+package scala.tools
+package nsc
+package settings
+
+import util.ClassPath
+
+class FscSettings(error: String => Unit) extends Settings(error) {
+ outer =>
+
+ def this() = this(Console.println)
+
+ val reset = BooleanSetting("-reset", "Reset compile server caches")
+ val shutdown = BooleanSetting("-shutdown", "Shutdown compile server")
+ val server = StringSetting ("-server", "hostname:portnumber", "Specify compile server socket", "")
+
+ disable(prompt)
+ disable(resident)
+
+ // Make all paths absolute since we may be going from client to server
+ userSetSettings foreach {
+ case x: PathSetting => x.value = ClassPath.makeAbsolute(x.value)
+ case _ => ()
+ }
+}