Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 346456

Summary: Project is built when imported, even if auto build is turned off in project properties
Product: [Tools] CDT Reporter: Jens Elmenthaler <jens.elmenthaler>
Component: cdt-buildAssignee: cdt-build-inbox <cdt-build-inbox>
Status: RESOLVED DUPLICATE QA Contact: Andrew Gvozdev <angvoz.dev>
Severity: normal    
Priority: P3 CC: cdtdoug, jamesblackburn+eclipse
Version: 7.0   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Jens Elmenthaler CLA 2011-05-19 10:23:25 EDT
Build Identifier: HEAD

In the Project menu, turn Build Automatically on. Create a project with "Build on resource save (Auto Build)" in the project properties turned off.

Import this project and it is now built.

I know the option says "Build on resource save...". Nevertheless it was created to support a workspace mixing projects that work well with auto build with project that don't (usually the makefile type of CDT projects).

I put the debugger on it to see what the difference between a build at import time and a build when saving is: It turns out that both start as an incremental build. But then BuildManager#basicBuild(int, IncrementalProjectBuilder, Map, MultiStatus, IProgressMonitor) maps it to a full build for the import since the project was never built before (InternalBuilder#getLastBuiltTree returned null).

Reproducible: Always
Comment 1 James Blackburn CLA 2011-05-19 11:54:01 EDT
Should be fixed in 3.7. Please confirm.

*** This bug has been marked as a duplicate of bug 306746 ***
Comment 2 Jens Elmenthaler CLA 2011-05-20 03:09:09 EDT
(In reply to comment #1)
> Should be fixed in 3.7. Please confirm.
Yes, works with 3.7. My fault, opened the wrong workbench.