| Summary: | deletion of .settings/org.eclipse.core.resources.pref causes a full build | ||
|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Angel Vera <arvera> |
| Component: | Resources | Assignee: | Platform-Resources-Inbox <platform-resources-inbox> |
| Status: | RESOLVED INVALID | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | Olivier_Thomann, sptaszkiewicz, Szymon.Brandys |
| Version: | 3.6 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
|
Description
Angel Vera
Jay, please investigate. I would say we should at least rebuild the file for which the encoding has been changed and its dependents if necessary. When the encoding is changed for a particular source file, the resource delta propagated to the Java builder contains only the specific source file and hence only that file is recompiled. However, when the pref file itself is deleted, the resource delta contains the entire project, which results in all source files being compiled by the Java builder. I don't know what JDT/Core can do here because we don't keep track of what the pref file contained before it was deleted. (In reply to comment #2) Why does the delta contain the entire project? it should probably only contain the .settings folder. (In reply to comment #3) > (In reply to comment #2) > Why does the delta contain the entire project? it should probably only contain > the .settings folder. To be precise, it delta contains all the individual resources in the project and not the project itself as a resource. Now, I don't know if there is any difference but from JDT/Core's standpoint, all the java files are in the resource delta and hence re-compiled. Requesting further investigation from the Platform team. The .settings/org.eclipse.core.resources.pref file contains information about encoding for all resources in the project. If the file gets deleted manually, then we have no information for which resource the encoding was changed. After deletion, the only thing we can do is to assume that potentially all resources in the project have different encoding now, thus all of them appear in resource delta. BTW, there is no need to delete or alter this file manually. (In reply to comment #5) > After deletion, the only thing we can do is to assume that potentially all resources > in the project have different encoding now, thus all of them appear in resource > delta. > BTW, there is no need to delete or alter this file manually. Szymon is right. Marking as INVALID. |