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

后端 未结 5 1599
独厮守ぢ
独厮守ぢ 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条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-11 05:12

    This question is kinda old, but there's an entirely different approach: You can create a Junction from the Folder where Eclipse expects the Project, for example E:\foo\workspace\myproject and link it to where the project lays, for example E:\bar\myproject.

    A Junction essentially means that you can access the same folder through 2 different paths, thus you don't need to worry with the weird relative path limitations of Eclipse. To create it easily and fast, I recommend you to get Link Shell Extension

提交回复
热议问题