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