Community
Participate
Working Groups
Build ID: M20090211-1700 Steps To Reproduce: Scenario: 1. Inside Eclipse, open a project that has a linked resource (project.properties.javaBuildPath.Source) 2. Outside Eclipse, remove/rename the directory that the .project file points to for this resource (the <link> value). 3. Inside Eclipse, 'Remove' the linked resource from the project 4. Add a new linked resource to the project whilst reusing the same (logical) Folder name as before. Error message: The 'Link Source' dialog box will indicate 'Source Folder: The folder '....' already exists. (The message is correct because the linked resource is still present in the .project file after it was removed inside Eclipse.) Cause: The problem is that the linked resource in not physically removed from the .project file if it points to an invalid location. Solution: When Removing a linked resource from a project, ignore the fact that the location is invalid and simply remove the Linkedresource from the .project file Peter. More information:
When I add a linked source, it is added to both the classpath and project files. When I remove a linked source, even if I don't move the underlying file folder, it is only removed from the classpath, it still remains as a linked folder. PW
*** This bug has been marked as a duplicate of bug 50158 ***