简体   繁体   English

如何移动Eclipse RCP项目.pref文件

[英]How can I move Eclipse RCP projects .pref files

I've been looking for a way to do this and I'm seeing mixed info, Lars Vogel's article suggests you can use the -Data program argument. 我一直在寻找一种实现此目的的方法,而且看到的信息不一, Lars Vogel的文章建议您可以使用-Data程序参数。

This moves the workspace, which is part of what I wanted, because I don't want my application to be writing any files to the run directory (it doesn't have access to do that) but it doesn't move my .pref files. 这将移动工作空间,这是我想要的一部分,因为我不希望我的应用程序将任何文件写入运行目录(它无权执行此操作),但不会移动.pref文件。

Most resources i'm seeing claim that the .pref files get stored in the workspace, but mine don't at all, they are under /configuration/.settings/ which is not in the workspace, but in the run directory of my exported exe. 我看到的大多数资源都声称.pref文件存储在工作空间中,但是我的文件根本没有,它们位于/configuration/.settings/下,该文件不在工作空间中,而是在我导出的运行目录中可执行程序。

Is there any way to get these preferences to go to the user home directory? 有什么方法可以使这些首选项进入用户主目录?

The majority of preferences are in the workspace (these are 'InstanceScope' preferences) 大多数首选项位于工作空间中(这些是“ InstanceScope”首选项)

There are a few which are global to all workspaces which are stored in the /configuration/.settings location (mostly to do with the recent workspaces values) - these are 'ConfigurationScope' preferences. 对于存储在/configuration/.settings位置中的所有工作空间,它们是全局的(主要与最近的工作空间值有关)-这些是“ ConfigurationScope”首选项。

The 'multi-user install' support does allow some changes to be made to locations - see Eclipse multi-user installs in the help “多用户安装”支持确实允许对位置进行一些更改-请参阅帮助中的Eclipse多用户安装

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM