Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Which tool for colorizing output of javac?

We have a hugely parallelized build process, so I frequently have to browse through large amounts of output from javac to find a build error.

To make this easier it would be nice if there were some tool that will colorize the output of javac to my terminal, highlighting errors in the code.

What tool can I use to colorize the output of javac?

like image 703
Bjarke Freund-Hansen Avatar asked Oct 03 '12 06:10

Bjarke Freund-Hansen


1 Answers

using grep with the "--color" option ?

~$ javac Test.java 2>&1 | egrep --color "^|error"
like image 61
Pierre Avatar answered Nov 20 '22 07:11

Pierre