| Summary: | IWorkspaceRoot.getFileForLocation with nested projects and resource filters | ||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Matt McCutchen <hashproduct+eclipse> | ||||||||||||||||||||||||||||
| Component: | Resources | Assignee: | Serge Beauchamp <serge> | ||||||||||||||||||||||||||||
| Status: | RESOLVED FIXED | QA Contact: | |||||||||||||||||||||||||||||
| Severity: | normal | ||||||||||||||||||||||||||||||
| Priority: | P3 | CC: | john.arthorne, serge, Szymon.Brandys | ||||||||||||||||||||||||||||
| Version: | 3.6.1 | Flags: | Szymon.Brandys:
review+
|
||||||||||||||||||||||||||||
| Target Milestone: | 3.7 RC1 | ||||||||||||||||||||||||||||||
| Hardware: | All | ||||||||||||||||||||||||||||||
| OS: | All | ||||||||||||||||||||||||||||||
| Whiteboard: | |||||||||||||||||||||||||||||||
| Attachments: |
|
||||||||||||||||||||||||||||||
|
Description
Matt McCutchen
Created attachment 194111 [details]
Test case tarball
Note that in order to run the "sub ant build.launch" launch configuration, you need to edit the file and replace 'java-1.6.0-openjdk-1.6.0.0.x86_64' by an active JRE name. Created attachment 194123 [details]
Test case tarball (hard-coded JRE removed)
Oops. I have changed the launch configuration to use the default JRE.
Created attachment 194125 [details]
Fix
Here's a fix for this bug.
Created attachment 194128 [details]
General fix
Here's a more general fix.
What it does is change the behavior of all the Workspace root findAll(Files|Container)** and get(File | Container)For() to have a consistent behavior regarding filtered out resources.
The behavior is now that the filtered out resources won't be returned by those APIs, since the resource can't exist in the workspace.
Szymon / John, can you comment on this change, and whether you think it's appropriate? Thanks.
Created attachment 194154 [details]
General fix
address a junit test failure for getFileForLocation for the workspace root location.
Imports should be formatted, but otherwise it looks good. Created attachment 195089 [details]
Revised fix
Revised fix: documentation clarification
Created attachment 195090 [details]
Revised fix
Revision: sorting import statements.
Created attachment 195091 [details]
Revised fix
(remove files inadvertently include in the patch)
Created attachment 195092 [details]
Revised fix
updating copyrights
Created attachment 195094 [details]
Revised fix
update documentation wording
Created attachment 195096 [details]
Minor changes to the patch above
Moreover FSRM#pathForLocation may be removed now I think.
Created attachment 195097 [details]
Latest patch
now remove unnecessary code in FSRM
Created attachment 195099 [details]
Latest patch
remove reference to resource filters in the documentation of FileSystemResourceManager.allPathsForLocation
This is now fixed on cvs head. |