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

Bug 54085

Summary: Location.setURL fails if folder does not exist
Product: [Eclipse Project] Equinox Reporter: Andrew Eidsness <eclipse>
Component: IncubatorAssignee: User Unknown <unknown1>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: n.a.edgar
Version: unspecified   
Target Milestone: 3.0 M8   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Andrew Eidsness CLA 2004-03-08 16:06:39 EST
As pascal and I discussed, if the argument to Location.setURL does not exist, 
then the function fails because it cannot create the .lock file.

Its understandable that you might require the instance data folder to exist, 
since we're passing the value as an URL.  However, even in that case, the 
operation still fails if the .metadata folder does not exist -- I don't think we 
can create the .metadata folder, so perhaps both folders could be created by the 
runtime.
Comment 1 Pascal Rapicault CLA 2004-03-08 16:19:40 EST
I released a fix in HEAD.
I chose to split the responsibility.
You create the 'root' folder, and we will create the .metadata folder.

I believe this makes more sense because in case where people give a URL we can 
not guarantee that we will be able to create the folder, therefore why in some 
case should we create the folder and not in some others.