开发者

Eclipse RCP retrieve compilation errors

开发者 https://www.devze.com 2023-02-23 08:02 出处:网络
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 abou

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

精彩评论

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

关注公众号