Community
Participate
Working Groups
Allow/change to relative path for virtual linked folders in the 'Advanced' option when creating folders: 'Link to folder in the file system'.
Please give more details. You want paths relative to what? You can create relative paths by defining a path variable (click "Variables" in the advanced folder creation area). Linked resources can then be defined relative to that path variable.
The value pairs defined in "Variables" are absolute (that makes sense here): /.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.core.resources.prefs:pathvariable.test=/home/user/some/folder/myproject/destination For "Linked Folders" it would be nice to have in ".project": <linkedResources> <link> <name>linked_folder_name</name> <type>2</type> <location>../a/relative/path/destination</location> (instead of an absolute path) </link> </linkedResources> It would make things easier for development on different machines with the same project settings (I need to have some links to other projects in the same workspace folder), but very different disk structure. All settings for a project are relative in Eclipse, except this one.
You can accomplish this by creating a path variable that points to your workspace location, and using this variable in your linked resource paths. That way the sample .project file will work across all machines as long as they define that variable. The notation you suggest does not make sense, since it is not clear what location the path is relative to.
The problem with path variable is its storage: that 'path variable' is not defined and saved in the .project or .classpath file, but elsewhere in the local user workspace. When you want to share the .project and .classpath, you define them outside your workspace, but anybody using that eclipse project will have then to define a 'path variable' into his/her workspace in order for that project to load successfully. Now, as for the relative path: it should be relative to the .project / .classpath file Can you tell me if: - that proposition now makes sense ? - one can reopen that bug for 3.3 furture fix ?
There is another open bug for this.
*** This bug has been marked as a duplicate of 122945 ***