diff options
author | Paul Phillips <paulp@improving.org> | 2009-03-12 18:15:25 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2009-03-12 18:15:25 +0000 |
commit | 8bafc41b19deca3b95877633dd07ffa38c42feec (patch) | |
tree | 6783e1f00230b672c11f64318ab03b85da954a8a /src/compiler/scala/tools/nsc/CompileClient.scala | |
parent | 8e28858bd1f1c4e8a4df03b87f51c362bc8e449e (diff) | |
download | scala-8bafc41b19deca3b95877633dd07ffa38c42feec.tar.gz scala-8bafc41b19deca3b95877633dd07ffa38c42feec.tar.bz2 scala-8bafc41b19deca3b95877633dd07ffa38c42feec.zip |
A big cleanup of Settings code.
manage existing settings and add new ones. It's paving the way for
low-fuss scalac preferences so we can exert fine grained config file
based control over compiler behavior.
Diffstat (limited to 'src/compiler/scala/tools/nsc/CompileClient.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/CompileClient.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/scala/tools/nsc/CompileClient.scala b/src/compiler/scala/tools/nsc/CompileClient.scala index 013ce2a823..941c722efb 100644 --- a/src/compiler/scala/tools/nsc/CompileClient.scala +++ b/src/compiler/scala/tools/nsc/CompileClient.scala @@ -34,7 +34,7 @@ class StandardCompileClient { pathsList.map(absFileName).mkString("", sep, "") } - val fileEnding = Properties.fileEndingString + val fileEndings = Properties.fileEndingString.split("""\|""").toList protected def normalize(args: Array[String]): (String, String) = { var i = 0 @@ -42,7 +42,7 @@ class StandardCompileClient { var serverAdr = "" while (i < args.length) { val arg = args(i) - if (fileEnding split ("\\|") exists (arg endsWith _)) { + if (fileEndings exists(arg endsWith _)) { args(i) = absFileName(arg) } else if (arg startsWith "-J") { //see http://java.sun.com/j2se/1.5.0/docs/tooldocs/solaris/javac.html#J |