diff options
author | michelou <michelou@epfl.ch> | 2006-07-20 15:24:23 +0000 |
---|---|---|
committer | michelou <michelou@epfl.ch> | 2006-07-20 15:24:23 +0000 |
commit | 4146327bbd6b8e5468c05a570a9190c99c4285e3 (patch) | |
tree | 21bddbe652ad6de36ba9344cbdef55141503d294 /src/compiler/scala/tools/nsc/CompileClient.scala | |
parent | ab9c3ee71d1c5ef758d47fd2d39c79e1dc68ca40 (diff) | |
download | scala-4146327bbd6b8e5468c05a570a9190c99c4285e3.tar.gz scala-4146327bbd6b8e5468c05a570a9190c99c4285e3.tar.bz2 scala-4146327bbd6b8e5468c05a570a9190c99c4285e3.zip |
fsc prints more info messages with -verbose option
Diffstat (limited to 'src/compiler/scala/tools/nsc/CompileClient.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/CompileClient.scala | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/CompileClient.scala b/src/compiler/scala/tools/nsc/CompileClient.scala index 9e24a67d72..2b571741bd 100644 --- a/src/compiler/scala/tools/nsc/CompileClient.scala +++ b/src/compiler/scala/tools/nsc/CompileClient.scala @@ -14,6 +14,8 @@ import java.io._ */ object CompileClient { + var verbose = false + def normalize(args: Array[String]): Pair[String, String] = { def absFileName(path: String) = new File(path).getAbsolutePath() def absFileNames(paths: String) = { @@ -35,6 +37,8 @@ object CompileClient { } else if (arg startsWith "-J") { vmArgs append " -"+arg.substring(2) args(i) = "" + } else if (arg == "-verbose") { + verbose = true } i = i + 1 if (i < args.length) { @@ -57,7 +61,7 @@ object CompileClient { def main(args: Array[String]): unit = { val Pair(vmArgs, serverAdr) = normalize(args) - if (args.toList contains "-verbose") { + if (verbose) { System.out.println("[Server arguments: " + args.mkString("", " ", "]")) System.out.println("[VM arguments: " + vmArgs + "]") } |