Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 331545

Summary: Renaming a linked resources that uses a path variable makes the link absolute
Product: [Eclipse Project] Platform Reporter: Martin Oberhuber <mober.at+eclipse>
Component: ResourcesAssignee: Martin Oberhuber <mober.at+eclipse>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.5   
Target Milestone: 3.6   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Martin Oberhuber CLA 2010-12-01 09:39:06 EST
CQ:WIND00243927
Build ID: Eclipse 3.5

Steps to reproduce:
1. In Preferences, define a Workspace Path Variable WS_ROOT_DIR -> C:\ws
2. In a project, create a linked resource folder using the path variable.
   Creates this entry in the .project file:
		<link>
			<name>link_to_foo</name>
			<type>2</type>
			<locationURI>WS_ROOT_DIR/foo</locationURI>
		</link>
3. Rename link_to_foo --> renamed_to_foo
   --> The linked resource target is now saved in the .project file as an 
       absolute path rather than using the path variable:
		<link>
			<name>renamed_to_foo</name>
			<type>2</type>
			<locationURI>C:/ws/foo</locationURI>
		</link>
Comment 1 Martin Oberhuber CLA 2010-12-01 09:40:08 EST
This is fixed in Eclipse 3.6, likely as part of the work making path variables more flexible.