I'm writing my own eclipse plug-in that integrates with the Eclipse Android Development Tools (ADT).
However, I'm getting a CoreException ("Project target not loaded yet.") thrown when I attempt to call IProject.build on an Android project as part of a unit test:
IProject project = importProject(...);
project.build(IncrementalProjectBuilder.FULL_BUILD, monitor);
Should I be waiting for the project target to load before calling the above? If so, what call should I use to poll the project target loading status?