Alternatively you can instantiate and use the ErrorParserManager
directly. If you're not running your tools as part of a build then
this may be the way to go (it'll be faster as you don't lock the
workspace, perform unnecessary refreshes etc.). It's relatively
straightforward to attach and EPM to any outputstream:
String[] errorParsers = "my_error_parsers";
ErrorParserManager epm = new ErrorParserManager(currentProject,
defaultDirectory, MyMarkerGenerator, errorParsers);
epm.setOutputStream(outputStream);
See ManagedBuild's CommonBuilder.java / the ErrorParser tests for more.