diff options
author | Martin Odersky <odersky@gmail.com> | 2006-06-20 16:34:51 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2006-06-20 16:34:51 +0000 |
commit | 4d929158efa9a6e95df14c399091a0f213aebf2d (patch) | |
tree | 488270edb1eed025a96c1655e8cc139951d84839 /src/compiler/scala/tools/ant/Scalac.scala | |
parent | 640ea6fc45b860e85b588d3217df61d087d674ba (diff) | |
download | scala-4d929158efa9a6e95df14c399091a0f213aebf2d.tar.gz scala-4d929158efa9a6e95df14c399091a0f213aebf2d.tar.bz2 scala-4d929158efa9a6e95df14c399091a0f213aebf2d.zip |
Fixed parsing problem for closures
Diffstat (limited to 'src/compiler/scala/tools/ant/Scalac.scala')
-rw-r--r-- | src/compiler/scala/tools/ant/Scalac.scala | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/compiler/scala/tools/ant/Scalac.scala b/src/compiler/scala/tools/ant/Scalac.scala index 9632094102..0db460b084 100644 --- a/src/compiler/scala/tools/ant/Scalac.scala +++ b/src/compiler/scala/tools/ant/Scalac.scala @@ -255,7 +255,7 @@ package scala.tools.ant { /** Sets the log attribute. Used by Ant. * @param input The value for <code>logPhase</code>. */ def setLogPhase(input: String) = { - logPhase = List.fromArray(input.split(",")).flatMap(s: String => { + logPhase = List.fromArray(input.split(",")).flatMap { s: String => val st = s.trim() if (CompilerPhase.isPermissible(st)) (if (input != "") List(st) else Nil) @@ -263,7 +263,7 @@ package scala.tools.ant { error("Phase " + st + " in log does not exist.") Nil } - }) + } } /** Sets the use predefs attribute. Used by Ant. @@ -479,7 +479,7 @@ package scala.tools.ant { // Compiles the actual code val compiler = new Global(settings, reporter) try { - (new compiler.Run).compile(sourceFiles.map(f:File=>f.toString())) + (new compiler.Run).compile(sourceFiles.map { f:File=>f.toString() }) } catch { case exception: Throwable if (exception.getMessage != null) => exception.printStackTrace() |