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?
using grep with the "--color" option ?
I ended up using a tool called Generic Colorizer Tool and write my own configuration for colorizing the most important output. Works just fine. :)
Roll your own javac error colorizer by using any regex matcher to match your text and surround it with terminal color escape codes to apply a color:
Using a
readfile
andsubstitute
ideology:Works for me:
This code is the same as above, but it uses a terminal line iterator and a
sed
replace ideology: