如何为Eclipse工作区使用相对路径 [英] How To Use A Relative Path For The Eclipse Workspace
问题描述
每当我将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
文件夹的,则尝试使用带有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屋!