summaryrefslogtreecommitdiff
path: root/sources/scalac/CompilerCommand.java
diff options
context:
space:
mode:
authorpaltherr <paltherr@epfl.ch>2005-01-27 17:17:34 +0000
committerpaltherr <paltherr@epfl.ch>2005-01-27 17:17:34 +0000
commit4a519eb7b1bb3ee5c72bd28b7447313258597f7b (patch)
tree624e67baaec15d91fc252e0524a27aa550715f5f /sources/scalac/CompilerCommand.java
parent816c3d50011c50d0bf48931f87f936591d51d3ba (diff)
downloadscala-4a519eb7b1bb3ee5c72bd28b7447313258597f7b.tar.gz
scala-4a519eb7b1bb3ee5c72bd28b7447313258597f7b.tar.bz2
scala-4a519eb7b1bb3ee5c72bd28b7447313258597f7b.zip
- Split the Reporter class into a Reporter inte...
- Split the Reporter class into a Reporter interface and an AbstractReporter and a ConsoleReporter class.
Diffstat (limited to 'sources/scalac/CompilerCommand.java')
-rw-r--r--sources/scalac/CompilerCommand.java10
1 files changed, 6 insertions, 4 deletions
diff --git a/sources/scalac/CompilerCommand.java b/sources/scalac/CompilerCommand.java
index d2e244b271..03089f1d49 100644
--- a/sources/scalac/CompilerCommand.java
+++ b/sources/scalac/CompilerCommand.java
@@ -14,6 +14,7 @@ import java.util.List;
import scala.tools.util.ClassPath;
import scala.tools.util.Reporter;
+import scala.tools.util.ConsoleReporter;
import scalac.util.CommandParser;
import scalac.util.ArgumentParser;
@@ -305,10 +306,11 @@ public class CompilerCommand extends CommandParser {
*/
public boolean parse(String[] args) {
boolean result = super.parse(args);
- reporter().nowarn = nowarn.value;
- reporter().verbose = verbose.value;
- reporter().prompt = prompt.value;
- reporter().shortname = Xshortname.value;
+ reporter().verbose(verbose.value);
+ reporter().nowarn(nowarn.value);
+ reporter().prompt(prompt.value);
+ if (reporter() instanceof ConsoleReporter)
+ ((ConsoleReporter)reporter()).shortname = Xshortname.value;
return result;
}