diff options
author | Josh Suereth <joshua.suereth@gmail.com> | 2012-09-11 13:44:40 -0400 |
---|---|---|
committer | Josh Suereth <joshua.suereth@gmail.com> | 2012-09-12 08:31:02 -0400 |
commit | fdcda3313da5415b62bff9341081dd266ca76cb3 (patch) | |
tree | c7a34b405b53037dcd98a0321b6c0cd3ff752d17 /src | |
parent | 13002fea6a45e3c51cbcbf1775fde8e4ab3e59d9 (diff) | |
download | scala-fdcda3313da5415b62bff9341081dd266ca76cb3.tar.gz scala-fdcda3313da5415b62bff9341081dd266ca76cb3.tar.bz2 scala-fdcda3313da5415b62bff9341081dd266ca76cb3.zip |
Fixes SI-6268. Review by @paulp and @lrytz.
This reverts a refactoring from https://github.com/scala/scala/commit/963aabbeb4
MultiString settings would not properly write an unparse string that could be
reparsed, leading to failures when forking scalac in ant. Specifically, if a
setting was empty, it was getting added to the unparse string and causing
scalac to fail. This at least reverts to previous behavior (also more correct
for multiple values). Whatever we do here has to work with the @file style
argument reading and can't place empty options on the command line.
Also, This assumes there are tests around the behvior the REPL needs.
Note: The test is not automated yet, so unfortunately, we need to improve ANT testing capabilities to prevent regressons
Diffstat (limited to 'src')
-rw-r--r-- | src/compiler/scala/tools/nsc/settings/MutableSettings.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/settings/MutableSettings.scala b/src/compiler/scala/tools/nsc/settings/MutableSettings.scala index 116eed0f31..2ff81ae603 100644 --- a/src/compiler/scala/tools/nsc/settings/MutableSettings.scala +++ b/src/compiler/scala/tools/nsc/settings/MutableSettings.scala @@ -536,7 +536,7 @@ class MutableSettings(val errorFn: String => Unit) } override def tryToSetColon(args: List[String]) = tryToSet(args) override def tryToSetFromPropertyValue(s: String) = tryToSet(s.trim.split(',').toList) - def unparse: List[String] = name :: value + def unparse: List[String] = value map (name + ":" + _) withHelpSyntax(name + ":<" + arg + ">") } |