如何修改Eclipse位置以防止写入user.home目录? [英] How modify Eclipse locations to prevent write to user.home directory?
问题描述
我尝试了所有不同的设置,是的,我知道eclipse.ini和config.ini,还尝试了不同的命令行参数!什么都解决不了我的问题!
所有尝试,但仍然是每次我运行eclipse.exe时,它都想写到我的userhome中,即.eclipse和。 p2文件夹。
我也尝试过以下所有设置,并使用不同的组合:
I have tried with all settings bellow among others, in different combinations too:
-Dosgi.user.area=file:/c:/eclipse-conf/e46
-Dosgi.configuration.area=file:/c:/eclipse-conf/e46
-Dosgi.instance.area=file:/c:/eclipse-conf/e46
-Declipse.p2.data.area=file:/c:/eclipse-conf/e46/p2
-Dorg.eclipse.equinox.p2.configurationFolder=file:/c:/eclipse-conf/e46/p2
-Dorg.eclipse.equinox.p2.installFolder=file:/c:/eclipse-conf/e46/p2
-Dorg.eclipse.equinox.p2.reconciler.dropins.directory=file:/c:/eclipse-conf/e46/p2
-Dorg.eclipse.equinox.p2.cache=file:/c:/eclipse-conf/e46/p2
-Dorg.eclipse.equinox.p2.roaming=file:/c:/eclipse-conf/e46/p2
-Dorg.eclipse.equinox.p2.cache.shared=file:/c:/eclipse-conf/e46/p2
< >是没有帮助!好吧,它会写入 / e46
和 / e46 / p2
文件夹,但它也会创建/写入 c:\users\mrsimplemind\.eclipse& .eclipseextension& .p2
即使我在手动创建文件夹之前也无济于事。
This did not help! Well it writes to /e46
and /e46/p2
folder but it also creates/writes to c:\users\mrsimplemind\.eclipse & .eclipseextension & .p2
Even if I manually create the folders before it will not help.
现在请这里的任何人都能成功地完全隔离蚀配置输出?
Now please anyone here had success to fully isolate eclipse configuration output?
我实现此目标的唯一方法是更改 user.home
,但我没有像这样的解决方法,因为在日食中需要原始的 user.home中的内容,例如.ssh,.git,.m2 maven等。我不想为每个月食用户保留配置文件设置的重复。home
The only way I achieved this was by changing the user.home
but I don't like this workaround as there are stuff in the original "user.home" that will be needed in eclipse, e.g. .ssh , .git , .m2 maven etc. I don't want to keep duplicates of profile settings for each eclipse user.home
我只想隔离月食,这应该是可配置的!我不喜欢输出到user.home ..这不是一个选择!对于每个eclipse安装,我想控制eclipse在哪个文件夹中创建的内容。
I just want to isolate eclipse, this should be configurable! I don't like the outputs to user.home .. It is not an option! I want to have control of what eclipse creates in what folders, for each eclipse installation.
(我只能从Windows操作系统知道,我不知道Eclipse如何在Mac上,使用上面的设置效果更好)
(I can only tell from windows os, I don't know how if Eclipse on Mac works better with the settings above)
我不使用OOMPH安装程序,下面的一些评论具有误导性
推荐答案
此方法可在Windows 7,Eclipse氧气上使用:
This works on Windows 7, Eclipse Oxygen:
- 安装Eclipse,但尚未启动
- 编辑
eclipse.ini
,然后在下面-vmargs
,添加一个条目以将用户主目录更改为共享文件夹:
- Install Eclipse, but DON'T launch it yet
- Edit
eclipse.ini
and, underneath-vmargs
, add an entry to change user home to be a shared folder:
eg
-vmargs
-Duser.home=C:\Development
- 启动Eclipse。应该看到在共享文件夹中创建了 .eclipse,。tooling等文件夹,而在用户文件夹下没有创建任何文件夹。
这篇关于如何修改Eclipse位置以防止写入user.home目录?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!