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

I guess what I see here is that
         resource.touch(progressMonitor);  \\ resource is a java file here
does not trigger automatic build on resource modification

You are correct that when "Perform build automatically on resource
modification" in not checked
project.build(IncrementalProjectBuilder.INCREMENTAL_BUILD, progressMonitor);
works

"Simon Arsenault" <simon_arsenault@xxxxxxx> wrote in message
news:9ik33h$lqp$1@xxxxxxxxxxxxxxxx
> 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.
> >
> >
>
>