summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/ant/Scalac.scala
diff options
context:
space:
mode:
authormichelou <michelou@epfl.ch>2006-11-08 17:31:24 +0000
committermichelou <michelou@epfl.ch>2006-11-08 17:31:24 +0000
commit939774370edfca1b44e21243b4fbfee55fa17b5e (patch)
tree088abd77dc196a5e4ac571d9b1291097b605a7bd /src/compiler/scala/tools/ant/Scalac.scala
parentc8b7f16b101b2281f31cb1744bbe15aefc44278c (diff)
downloadscala-939774370edfca1b44e21243b4fbfee55fa17b5e.tar.gz
scala-939774370edfca1b44e21243b4fbfee55fa17b5e.tar.bz2
scala-939774370edfca1b44e21243b4fbfee55fa17b5e.zip
removed Ant tests from auto mode until path pro...
removed Ant tests from auto mode until path problem solved
Diffstat (limited to 'src/compiler/scala/tools/ant/Scalac.scala')
-rw-r--r--src/compiler/scala/tools/ant/Scalac.scala9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/compiler/scala/tools/ant/Scalac.scala b/src/compiler/scala/tools/ant/Scalac.scala
index 6ef3fa50f5..efb19021e5 100644
--- a/src/compiler/scala/tools/ant/Scalac.scala
+++ b/src/compiler/scala/tools/ant/Scalac.scala
@@ -2,10 +2,11 @@
** / |/ / ____/ ____/ **
** / | | /___ / /___ **
** /_/|__/_____/_____/ Copyright 2005-2006 LAMP/EPFL **
-**
-** $Id$
+** **
\* */
+// $Id$
+
package scala.tools.ant {
import java.lang.System.getProperty
@@ -570,7 +571,7 @@ package scala.tools.ant {
else List.fromArray(addParams.trim().split(" ")).map(.trim())
while(!args.isEmpty) {
val argsBuf = args
- if (args.head.startsWith("-")) {
+ if (args.head startsWith "-") {
for (val setting <- settings.allSettings)
args = setting.tryToSet(args);
} else error("Parameter '" + args.head + "' does not start with '-'.")
@@ -588,7 +589,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 (.toString()))
} catch {
case exception: Throwable if (exception.getMessage != null) =>
exception.printStackTrace()