如何在两个不同的工作集中加载两个名称冲突的 Eclipse 项目?
我有两个 Eclipse 工作集(WorkingSet 0.1.x 和workingSet 0.2.x)。我需要交替地对它们进行研究,尽管两者互不影响。问题是某些项目显然具有相同的名称(MyProject、MyModule)。即使我关闭了WorkingSet 0.1.x中的所有项目,我什至无法将该项目的0.2.x版本添加到WorkingSet 0.2.x中,因为工作区中已经有它的一个实例。除了每次需要切换到不同分支时重命名我的项目或删除工作区中的所有内容之外,我如何使用工作集来保持这些独立?或者我是否需要两个独立的工作区,这似乎有点过分了?
I have two Eclipse working sets (WorkingSet 0.1.x and WorkingSet 0.2.x). I need to do work on them interchangeably, though neither interacts with the other. The problem is that some of the projects obviously have the same name (MyProject, MyModule). Even if I close all of the projects in WorkingSet 0.1.x, I can't even add the 0.2.x version of that project to WorkingSet 0.2.x because there is already an instance of it in the workspace. Aside from renaming my projects or deleting everything out of the workspace each time I need to switch to a different branch, how can I use working sets to keep these independent? Or do I need two separate workspaces, which seems like overkill?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果您无法重命名项目 - 您唯一的选择是使用不同的工作区,这不是一个糟糕的主意,因为您提到项目不会相互交互。
If you cannot rename the project - the only option you have is to use different workspaces, which is not a terrible idea, since you mentioned that projects don't interact with each other.
实际上我找到了一个可行的解决方案。我创建代表分支的多个工作集并创建相关项目,如此处所述 https://bugs .eclipse.org/bugs/show_bug.cgi?id=102121
同样,您需要在工作区中为您的项目指定一个唯一的名称,但这对我来说已经足够了。
Actually I found a viable solution for this. I create multiple working sets representing branches and create relevant projects as mentioned here https://bugs.eclipse.org/bugs/show_bug.cgi?id=102121
Again, you will need to have a unique name for your project in the workspace but this does the job for me.