Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 331545 - Renaming a linked resources that uses a path variable makes the link absolute
Summary: Renaming a linked resources that uses a path variable makes the link absolute
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Resources (show other bugs)
Version: 3.5   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.6   Edit
Assignee: Martin Oberhuber CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-01 09:39 EST by Martin Oberhuber CLA
Modified: 2010-12-01 09:40 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.