开发者

Eclipse RCP retrieve compilation errors

I'm developing an eclipse rcp. When i run a project, it is first builded and then launched. If the builder failed to compile t开发者_StackOverflow中文版he project, then i have to notify the user about that.

Which is the better way to know if there were errors during compilation?

thanks


One way is to add your own builder in eclipse. Go to Project->properties->Builders and then New to add your own builder. You can have an ant script or maven as builder. Ofcourse you need to know ant for this.


The solution was contained in the api of IncrementalProjectBuilder in the build method:

Throws: CoreException - if this build fails.

I have to throw an exception when the builder failed.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜