Bug 54085 - Location.setURL fails if folder does not exist
Summary: Location.setURL fails if folder does not exist
Status: RESOLVED FIXED
Alias: None
Product: Equinox
Classification: Eclipse Project
Component: Incubator (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.0 M8   Edit
Assignee: User Unknown CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-08 16:06 EST by Andrew Eidsness CLA
Modified: 2005-09-27 09:12 EDT (History)
1 user (show)

See Also:


Attachments

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