[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools] Re: Is Incremental build working in jdt?

Incremental build only does something if there are changes since the last
build.

The reason why you do not see incremental build in the UI (Build menu and
tool bar icon) is probably because automatic incremental build is on. Open
the preferences dialog (Window > Preferences) and select the "Workbench"
preference page. Look at the option "Perform build automatically on resource
modification"

Note if this option is on, then it explains why doing
    project.build(IncrementalProjectBuilder.INCREMENTAL_BUILD, pm);
did nothing - since automatic incremental build is on, every time you make a
change the incremental build runs, therefore calling the project.build()
above does nothing (build was already done automatically).

Simon :-)


"Ilya Rozenberg" <irozenberg@xxxxxxxxxxxx> wrote in message
news:9iinj0$9md$1@xxxxxxxxxxxxxxxx
> This works:
> project.build(IncrementalProjectBuilder.FULL_BUILD, pm);
> this does not:
> project.build(IncrementalProjectBuilder.INCREMENTAL_BUILD, pm);
> Incremental build action is also missing from UI.
>
>