diff options
author | Paul Phillips <paulp@improving.org> | 2010-02-07 00:13:55 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2010-02-07 00:13:55 +0000 |
commit | 8d4f65fb24c6f0278e46ea58ab6d97f277903acc (patch) | |
tree | f4b811cc1681838bca4c670f5d30447596622fd7 /src/compiler/scala/tools/nsc/Settings.scala | |
parent | 982baae07693ff1a566b4d90e47be60291342e82 (diff) | |
download | scala-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.scala | 4 |
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 |