Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 346456 - Project is built when imported, even if auto build is turned off in project properties
Summary: Project is built when imported, even if auto build is turned off in project p...
Status: RESOLVED DUPLICATE of bug 306746
Alias: None
Product: CDT
Classification: Tools
Component: cdt-build (show other bugs)
Version: 7.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: cdt-build-inbox@eclipse.org CLA
QA Contact: Andrew Gvozdev CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-19 10:23 EDT by Jens Elmenthaler CLA
Modified: 2011-05-20 03:09 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.