Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-debug-dev] Launching with background build

I should have replied to John's email instead of yours. I was thinking of his 
psuedocode where you see if a build job exists and either join to it or 
prompt and wait. That code applies even if the user has the "build before 
launch" option turned off. I'm just saying we should prompt in either branch 
of this psuedocode:

Job[] build = 
Platform.getJobManager().find(ResourcesPlugin.FAMILY_AUTO_BUILD);
if (build.length == 1) {
   if (build[0].getState() == Job.WAITING) {
       //auto-build is blocked by another process, so ask the user if they 
want to launch or wait
   } else if (build[0].getState() == Job.RUNNING) {
       //auto-build is running, so join it to wait until it completes
      build[0].join();
   }
}

- Jared

On Wednesday 17 September 2003 06:35 am, Darin Wright wrote:
> I disagree... If the user has a preference set to "build before launch",
> then they expect wait as the build completes. Only if the build has to be
> delayed for a unknown amount of time, is the wait unexpected. I don't
> think we want to pop up a dialog each time they launch saying "do you want
> to wait for a build?". The answer is,"yes - I checked the preference to do
> this".


Back to the top