| Summary: | Restore default properties of a single source file results in clean and full build of the project | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Tools] CDT | Reporter: | Alex Freidin <freidin.alex> | ||||
| Component: | cdt-build-managed | Assignee: | Project Inbox <cdt-build-managed-inbox> | ||||
| Status: | NEW --- | QA Contact: | Jonah Graham <jonah> | ||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | cdtdoug, jamesblackburn+eclipse, yevshif | ||||
| Version: | 8.0 | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | PC | ||||||
| OS: | All | ||||||
| Whiteboard: | |||||||
| Bug Depends on: | 193286 | ||||||
| Bug Blocks: | |||||||
| Attachments: |
|
||||||
|
Description
Alex Freidin
Related to bug 193286, but with different scenario. When a file is restored to defaults, the MBS calls Configuration.removeResourceConfiguration() that sets rebuildNeeded=true. Instead, it should record the resource that changed and build it. (In reply to comment #1) > Related to bug 193286, but with different scenario. When a file is restored to > defaults, the MBS calls Configuration.removeResourceConfiguration() that sets > rebuildNeeded=true. Instead, it should record the resource that changed and > build it. It should be sufficient to just IResource.touch() the file. It'll then be rebuilt at the next build. Also needs a test... (In reply to comment #2) > (In reply to comment #1) > > Related to bug 193286, but with different scenario. When a file is restored to > > defaults, the MBS calls Configuration.removeResourceConfiguration() that sets > > rebuildNeeded=true. Instead, it should record the resource that changed and > > build it. > > It should be sufficient to just IResource.touch() the file. It'll then be > rebuilt at the next build. Also needs a test... I think the file will be rebuilt in all project configurations then, not only the changed one. Are we OK with that? Some time ago I applied a quick fix that changes the time stamp of the corresponding object as was done in a patch for bug 193286. Created attachment 212138 [details]
The quick fix I've done against CDT 7.0.1.
|