summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/ant/ScalaTool.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2006-06-16 17:51:29 +0000
committerMartin Odersky <odersky@gmail.com>2006-06-16 17:51:29 +0000
commit769b33953d82e1570267adef2ee64fb1c57cb3f1 (patch)
tree2b503a2c7795ded5bd079a01e05c04fc680dc228 /src/compiler/scala/tools/ant/ScalaTool.scala
parent8714d194abc293d319c9ee96a2643f18853b86d3 (diff)
downloadscala-769b33953d82e1570267adef2ee64fb1c57cb3f1.tar.gz
scala-769b33953d82e1570267adef2ee64fb1c57cb3f1.tar.bz2
scala-769b33953d82e1570267adef2ee64fb1c57cb3f1.zip
Changed compile server to make it more robust;
Some stylistic cleanups elsewhere
Diffstat (limited to 'src/compiler/scala/tools/ant/ScalaTool.scala')
-rw-r--r--src/compiler/scala/tools/ant/ScalaTool.scala8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/compiler/scala/tools/ant/ScalaTool.scala b/src/compiler/scala/tools/ant/ScalaTool.scala
index 64277636ce..f0898a1f04 100644
--- a/src/compiler/scala/tools/ant/ScalaTool.scala
+++ b/src/compiler/scala/tools/ant/ScalaTool.scala
@@ -115,7 +115,7 @@ package scala.tools.ant {
/** Sets the platforms attribute. Used by Ant.
* @param input The value for <code>platforms</code>. */
def setPlatforms(input: String) = {
- platforms = List.fromArray(input.split(",")).flatMap(s: String => {
+ platforms = List.fromArray(input.split(",")).flatMap { s: String =>
val st = s.trim()
if (Platforms.isPermissible(st))
(if (input != "") List(st) else Nil)
@@ -123,7 +123,7 @@ package scala.tools.ant {
error("Platform " + st + " does not exist.")
Nil
}
- })
+ }
}
/** Sets the version attribute. Used by Ant.
@@ -149,12 +149,12 @@ package scala.tools.ant {
/** Sets the properties attribute. Used by Ant.
* @param input The value for <code>properties</code>. */
def setProperties(input: String) = {
- properties = List.fromArray(input.split(",")).flatMap(s: String => {
+ properties = List.fromArray(input.split(",")).flatMap { s: String =>
val st = s.trim(); val stArray = st.split("=", 2)
if (stArray.length == 2) {
if (input != "") List(Pair(stArray(0), stArray(1))) else Nil
} else error("Property " + st + " does not conform to specification.")
- })
+ }
}
/** Sets the version attribute. Used by Ant.