summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/Settings.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2010-02-07 00:13:55 +0000
committerPaul Phillips <paulp@improving.org>2010-02-07 00:13:55 +0000
commit8d4f65fb24c6f0278e46ea58ab6d97f277903acc (patch)
treef4b811cc1681838bca4c670f5d30447596622fd7 /src/compiler/scala/tools/nsc/Settings.scala
parent982baae07693ff1a566b4d90e47be60291342e82 (diff)
downloadscala-8d4f65fb24c6f0278e46ea58ab6d97f277903acc.tar.gz
scala-8d4f65fb24c6f0278e46ea58ab6d97f277903acc.tar.bz2
scala-8d4f65fb24c6f0278e46ea58ab6d97f277903acc.zip
Some code duplication removal as I inch us towa...
Some code duplication removal as I inch us toward consistent classpath handling. No review.
Diffstat (limited to 'src/compiler/scala/tools/nsc/Settings.scala')
-rw-r--r--src/compiler/scala/tools/nsc/Settings.scala4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/Settings.scala b/src/compiler/scala/tools/nsc/Settings.scala
index e61f7dc11e..8c921b98a1 100644
--- a/src/compiler/scala/tools/nsc/Settings.scala
+++ b/src/compiler/scala/tools/nsc/Settings.scala
@@ -7,6 +7,7 @@
package scala.tools.nsc
import java.io.File
+import File.pathSeparator
import io.AbstractFile
import util.SourceFile
import Settings._
@@ -22,7 +23,7 @@ class Settings(errorFn: String => Unit) extends ScalacSettings {
// given any number of possible path segments, flattens down to a
// :-separated style path
private def concatPath(segments: Option[String]*): String =
- segments.toList.flatMap(x => x) mkString File.pathSeparator
+ segments.toList.flatMap(x => x) mkString pathSeparator
protected def classpathDefault =
sysenvopt("CLASSPATH") getOrElse "."
@@ -817,6 +818,7 @@ trait ScalacSettings {
* Temporary Settings
*/
val suppressVTWarn = BooleanSetting ("-Ysuppress-vt-typer-warnings", "Suppress warnings from the typer when testing the virtual class encoding, NOT FOR FINAL!")
+ def appendToClasspath(entry: String) = classpath.value += (pathSeparator + entry)
/**
* Standard settings