Bug 221771 - Full workspace rebuild when changing API profile
Summary: Full workspace rebuild when changing API profile
Status: RESOLVED DUPLICATE of bug 221209
Alias: None
Product: PDE
Classification: Eclipse Project
Component: API Tools (show other bugs)
Version: 3.3   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.4 M6   Edit
Assignee: Darin Wright CLA
QA Contact:
URL:
Whiteboard:
Keywords: performance
Depends on:
Blocks:
 
Reported: 2008-03-06 18:03 EST by John Arthorne CLA
Modified: 2008-03-07 11:18 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Arthorne CLA 2008-03-06 18:03:30 EST
Build: I20080305-1100

If I change my default API profile, my entire workspace is rebuilt from scratch (FULL_BUILD). This seems excessive - it seems only the API builder needs to actually run.  I have a very large workspace, and only one small project with an API builder on it, so seeing all the .java files in my workspace being recompiled was a surprise. Who knows what other builders users may have installed, and how long they might take to rebuild...
Comment 1 Michael Rennie CLA 2008-03-06 20:06:06 EST
This is the same problem we encountered for bug 221209. The fix for that was that we collect 'api aware' projects and build those using only the api analysis builder.

Testing on I20080305-1100 I only see the api analysis builder being invoked:

Thu Mar 06 19:03:11 CST 2008 - [Worker-10] Invoking (FULL_BUILD) on builder: Api
AnalysisBuilder(component_c)
Thu Mar 06 19:03:11 CST 2008 - [Worker-10] Builder finished: ApiAnalysisBuilder(
component_c) time: 16ms

.... <snip>

But it probably should only be an incremental build. Investigating.
Comment 2 Michael Rennie CLA 2008-03-06 20:09:30 EST
To see what builders were being run I started eclispe with the following debug options:

org.eclipse.core.resources/debug=true
org.eclipse.core.resources/perf/builders=10000
org.eclipse.core.resources/build/failure=true
org.eclipse.core.resources/build/interrupt=true
org.eclipse.core.resources/build/invoking=true
org.eclipse.core.resources/build/delta=true
org.eclipse.core.resources/build/needbuild=true
org.eclipse.core.resources/build/needbuildstack=true
org.eclipse.core.resources/build/stacktrace=true
Comment 3 Michael Rennie CLA 2008-03-07 11:11:45 EST
changed build type to be incremetal, since we are doing an incremental build :)
Comment 4 Michael Rennie CLA 2008-03-07 11:12:06 EST
please verify Darin W
Comment 5 Michael Rennie CLA 2008-03-07 11:18:48 EST
reopen to dupe.

From further testing (of course once I closed the bug) I found that in some cases we do not get a full analysis of all types in the case of specifying an inremental build...

In that case this bug is a dupe of 221209.

*** This bug has been marked as a duplicate of bug 221209 ***