Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » How to wait for build job?
How to wait for build job? [message #484376] Mon, 07 September 2009 06:03 Go to next message
Eclipse UserFriend
I have a user job that generates few html files from a given EMF model. My
application is in such a way that the EMF model is not ready until the
build job is complete.

After going through the code for 'Clean...' action (under Project menu), I
found that 'ResourcesPlugin.getWorkspace().getRuleFactory().buildRule() '
is used to check for conflicts. In my isConflicting(), I have

if (rule.getClass() == ResourcesPlugin.getWorkspace().getRuleFactory()
.buildRule().getClass())
return true;

But my job simply proceeds with its file generation logic without waiting
for build to complete. How do I make my job to wait for build job to
complete?
Re: How to wait for build job? [message #484519 is a reply to message #484376] Mon, 07 September 2009 23:49 Go to previous message
Eclipse UserFriend
I got this snippet from Eclipse FAQ.

IJobManager jobMan = Platform.getJobManager();
Job[] build = jobMan.find(ResourcesPlugin.FAMILY_AUTO_BUILD);
if (build.length == 1)
build[0].join();

Is this the way I need to follow? Can't I detect within scheduling rules?
Previous Topic:PDE Build with Maven Ant
Next Topic:Write own MenuContribution to enable simple ribbon?
Goto Forum:
  


Current Time: Tue Jul 08 08:22:18 EDT 2025

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

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

Back to the top