[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] Running external tools with error parsing "org.eclipse.cdt.core.ErrorParser"

James,
that sound pretty good to me. But, is it possible to combine this EPM approach with the console that is provided by the ExternalTools approach I described in my first post? I need both, the console output and the error parsing.
-Achim



James Blackburn wrote on 2009-07-09 10:13:
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.