Accepted answer

building workspace is about incremental build of any evolution detected in one of the opened projects in the currently used workspace.

you can also disable it through the menu "project / build automatically".

but i would recommend first to check:

  • if a project clean all / build result in the same kind of long wait (after disabling this option)
  • if you have (this time with building automatically activated) some validation options you could disable to see if they have an influence on the global compilation time (preferences / validations, or preferences / xml / ... if you have wtp installed)
  • if a fresh eclipse installation referencing the same workspace (see this eclipse.ini for more) results in the same issue (with building automatically activated)

note that bug 329657 (open in 2011, in progress in 2014) is about interrupting a (too lengthy) build, instead of cancelling it:

there is an important difference between build interrupt and cancel.

  • when a build is cancelled, it typically handles this by discarding incremental build state and letting the next build be a full rebuild. this can be quite expensive in some projects.
    as a user i think i would rather wait for the 5 second incremental build to finish rather than cancel and result in a 30 second rebuild afterwards.

  • the idea with interrupt is that a builder could more efficiently handle interrupt by saving its intermediate state and resuming on the next invocation.
    in practice this is hard to implement so the most common boundary is when we check for interrupt before/after calling each builder in the chain.



for anyone running into a problem where build automatically is unchecked but the project is still building. make sure your project isn't deployed to the server in the server tab and told to stay synchronous.


if needed programmatic from a pde or jdt code:

public static void setworkspaceautobuild(boolean flag) throws coreexception 
iworkspace workspace = resourcesplugin.getworkspace();
final iworkspacedescription description = workspace.getdescription();


you can switch to manual build so can control when this is done. just make sure that project > build automatically from the main menu is unchecked.

Related Query

More Query from same tag