Project location relative to the workspace [message #553742] |
Wed, 18 August 2010 16:34 |
|
Hi,
I would like to know if there is a way to have a project location relative to the workspace.
My use case:
I use the default workspace but I put projects in folder inside this default workspace.
eclipse/workspace/
- folder 1
-project11
-project12
- folder 2
-project21
-project22
And I want that it works after I move all the folder eclipse into another place.
Unfortunately for now, it tells me that the .project is missing.
In fact, in .metadata/.plugins/org.eclipse.core.resources/.project/proje ct11/.location , I notice that the location is absolute, and that it points to the old location.
IProjectDescription.setLocation indicates that
Quote: | The path must be either an absolute file system path, or a relative path whose first segment is the name of a defined workspace path variable
|
Is there a workspace path variable to indicate the currently used workspace?
Don't hesitate to ask clarification if the synthesis of my issue is not understandable.
Regards,
Aurélien Pupier - Red Hat
Senior Software Engineer in Fuse Tooling team
|
|
|
|
Re: Project location relative to the workspace [message #553882 is a reply to message #553742] |
Thu, 19 August 2010 09:40 |
|
Thanks for your answer.
If I understand well, I'm using linked resource inside the workspace.
So when I move the workspace, the link point to theold location and so on don't find the project in the project.
Can I have linked resource relative to the workspace? It seems to me that it must be an absolute path.
BTW I have another idea. I can set a workspace variable on each startup to the workspace location. I don't see inconvenient to do that now so I will try that. (even if I would prefer to use areltive path to the workspace directly)
Regards,
Aurélien Pupier - Red Hat
Senior Software Engineer in Fuse Tooling team
|
|
|
Powered by
FUDForum. Page generated in 0.03501 seconds