【发布时间】:2011-05-15 10:21:14
【问题描述】:
是否可以让javac只输出错误位置和错误信息,隐藏源代码转储?
现在我明白了:
$ javac t.java
t.java:1: <identifier> expected
class {
^
t.java:2: reached end of file while parsing
bar
^
t.java:4: reached end of file while parsing
^
3 errors
我只想得到:
$ javac ... t.java
t.java:1: <identifier> expected
t.java:2: reached end of file while parsing
t.java:4: reached end of file while parsing
【问题讨论】: