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

Bug 346052

Summary: Can't add a project path variable that points to a root of a drive.
Product: [Eclipse Project] Platform Reporter: Serge Beauchamp <serge>
Component: ResourcesAssignee: Serge Beauchamp <serge>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: pwebster
Version: 3.7   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard: stalebug
Attachments:
Description Flags
Path in core.resources
none
Fix in the ui.ide none

Description Serge Beauchamp CLA 2011-05-17 04:46:42 EDT
If I add the following project path variable in the  "Resource | Linked Resources | Path Variables" property page:

Name: FOO
Value: C:\

The value gets recorded as an empty string after I close and re-open the preference panel.
Comment 1 Serge Beauchamp CLA 2011-05-17 04:47:58 EDT
The root cause of this bug is because doing 

new Path("C:"

isn't the same as doing 

new Path("C:\"

and, in the first case, will return false for Path.isAbsolute().
Comment 2 Serge Beauchamp CLA 2011-05-17 04:54:23 EDT
Created attachment 195820 [details]
Path in core.resources

He's a fix in the core.resources
Comment 3 Serge Beauchamp CLA 2011-05-17 04:58:26 EDT
Created attachment 195821 [details]
Fix in the ui.ide
Comment 4 Paul Webster CLA 2011-05-17 08:40:47 EDT
(In reply to comment #3)
> Created attachment 195821 [details]
> Fix in the ui.ide

Just a comment.  We use org.eclipse.jface.util.Util.isWindows() or isWin32() in ui.workbench and ui.ide.

PW
Comment 5 Lars Vogel CLA 2019-11-14 02:13:15 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

If the bug is still relevant, please remove the "stalebug" whiteboard tag.