如何为Eclipse工作区使用相对路径 [英] How To Use A Relative Path For The Eclipse Workspace

查看:140
本文介绍了如何为Eclipse工作区使用相对路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每当我将Eclipse文件夹移动到另一个位置时,它都会完全重置,除非我

Whenever I move the Eclipse folder to another location, it would completely reset unless I switch the workspace manually. It seems to use an absolute path, but I want a relative one to actually make it fully portable.

有什么办法吗?在哪里可以找到我设置的工作区路径?

Any way of doing this? Where do I find the workspace path I've set?

作为旁注,项目内引用的库必须使用相对路径来防止重新配置.

推荐答案

如果您的workspace是相对于eclipse文件夹的,则尝试使用带有config.ini中: //help.eclipse.org/indigo/index.jsp?topic=/org.eclipse.platform.doc.isv/reference/misc/platform-scheme-uri.html"rel =" nofollow> platform schema 解决以下事实:您不能使用绝对路径

If your workspace is relative to your eclipse folder then try adding this to the config.ini using relative path with platform schema to workaround the fact that you cannot use an absolute path according to this.

-data platform:/base/workspace

该文件位于eclipse根文件夹中.

The file is located in the root eclipse folder.

这篇关于如何为Eclipse工作区使用相对路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆