Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » How to programmatically waiting for build to complete?
How to programmatically waiting for build to complete? [message #331328] Mon, 01 September 2008 18:16
Eclipse UserFriend
Originally posted by: subs._nospam_consertum.com

Hi,

In my plugin, I am creating some projects and then building them, using:
workspace.build(IncrementalProjectBuilder.CLEAN_BUILD, monitor).

I want to wait for the build to complete and then check to see if there
were any build errors.

Q1. How can I detect when the build has completed? Is there a wait() or
a Listener or similar I can use?

To check for errors, I am iterating through each project in the
workspace and doing
project.findMaxProblemSeverity();

Q2. Is this the 'right' way to check for build errors?

Thanks,

--
Derek
Previous Topic:Source lookup doesn't work when debugging a fragment
Next Topic:[Databinding] Re: newbie: How fire a changed value on a writable from a thread other than the real
Goto Forum:
  


Current Time: Fri Aug 23 06:10:10 GMT 2024

Powered by FUDForum. Page generated in 0.03623 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top