Bug 173931 - Projects that override build triggers lose resource delta on autobuild
Summary: Projects that override build triggers lose resource delta on autobuild
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Resources (show other bugs)
Version: 3.3   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: 3.3 M6   Edit
Assignee: John Arthorne CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-12 16:41 EST by Steven R. Shaw CLA
Modified: 2007-02-26 10:43 EST (History)
1 user (show)

See Also:


Attachments
Test case (6.14 KB, patch)
2007-02-23 17:26 EST, John Arthorne CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Steven R. Shaw CLA 2007-02-12 16:41:09 EST
I have a project that I wish to override the auto-build capability from the global preference.  I set it's xml to allow for configuration and then change the buildSpec to remove the autobuild trigger when creating the project description.

The menus for build and build-all correctly become enabled when my project is selected even when auto-build is checked (expected).

However, when I invoke a change in my project and save, this invokes auto-build on all the projects in the workspace, except for my mine (expected), but the resource delta for my project is not subsequently saved.  The buildManager clears the cache as if my project was built. When invoking a manual build on my project, it doesn't do anything because it think there have been no changes since the last build (auto-build).
Comment 1 Steven R. Shaw CLA 2007-02-23 14:03:28 EST
Can someone comment on this?  I believe this to be a fairly serious issue for our client code.  Turning auto-build off locally is not possible without some heavy-weight local management of the resource deltas..
Comment 2 John Arthorne CLA 2007-02-23 17:26:30 EST
Investigating...
Comment 3 John Arthorne CLA 2007-02-23 17:26:44 EST
Created attachment 59723 [details]
Test case
Comment 4 John Arthorne CLA 2007-02-26 10:42:07 EST
Fix released.
Comment 5 John Arthorne CLA 2007-02-26 10:43:12 EST
For my own reference: Fix is in BuildManager.java revision 1.100.  Test cases in CustomBuildTriggerTest.java