Trying to create project in a sub folder under the workspace path fails: Invalid project description [message #1729607] |
Fri, 15 April 2016 17:14  |
Eclipse User |
|
|
|
Hello to the forum members,
Is it a known limitation that it is not possible to create projects in sub-folders of the workspace ?
When I try to create project using this API:
org.eclipse.core.resources.IProject.create(IProjectDescription description, IProgressMonitor monitor)
It fails if the location of the project is a sub-folder of the workspace folder.
For example: suppose the location of the workspace is C:\temp\workspace and there is a folder named "MyProject" under it. If I try to create a project named "test in that location (C:\temp\workspace\MyProject), I get ResourceException with the string "Invalid project description". If I debug Eclipse, I see that the error is set in org.eclipse.core.internal.resources.LocationValidator in method validateProjectLocationURI. There is another message set in the status that triggers the exception:
C:\temp\workspace\MyProject overlaps the location of another project: 'MyProject'
I reproduced this behavior from 3.6.x to 4.5.x releases.
Thanks,
Gidi
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03242 seconds