How to use relative paths for projects added to an Eclipse workspace?

后端 未结 5 1603
独厮守ぢ
独厮守ぢ 2020-12-11 04:32

I am working on some Eclipse projects that are stored on a USB key. I have added them to a workspace whose root folder is also on the USB key, but the projects are not locat

5条回答
  •  萌比男神i
    2020-12-11 05:01

    I haven't tried this myself, but this might work. Try:
    Add your source folder as linked resource & remove previous definition: http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse.platform.doc.user/tasks/tasks-45.htm

    Close eclipse and find your project folder in your workspace (ex: C:\Documents and Settings\username\workspace\yourproject\) Replace absolute paths in files .project & .classpath with relative paths.

提交回复
热议问题