p2 能否用于管理 Eclipse RCP 应用程序的可定制漫游配置文件?
我有一个 Eclipse RCP 应用程序,我想将其提供给使用 p2 配置平台的最终用户。
配置应用程序的要求如下:
- 用户需要能够安装附加功能才能自定义其个人应用程序。
- 用户在工作站之间移动,因此他们的个人安装需要像漫游配置文件一样跟随他们。
- 应用程序的更新和任何附加功能在可用时都需要自动应用于用户的安装。
- 该解决方案不应给应用程序带来显着的加载时间。
我当前的解决方案是让用户将应用程序安装到网络共享,以便每个用户在共享上自己的目录中拥有自己的应用程序副本。用户的工作空间单独存储在其家庭网络共享上,并且相当小。该应用程序可以配置为在启动时检查 p2 存储库中的更新,并将任何更新的功能下载到共享上的单独安装中。这支持要求 1、2 和 3,但会导致加载时间的显着开销,因为应用程序约为 500Mb。就用于存储相同功能的大量副本而言,这也浪费了磁盘空间。
我希望 p2 可以让我针对这个问题开发出更好的解决方案,并且我可以想到多种可能性,但是我对 p2 的了解相当基础,在我对各种选项进行长期调查之前,我想知道是否有人有使用 p2 提供可定制的漫游配置文件的经验,或者可以建议这是否可行。
I have an Eclipse RCP application that I'd like to make available to end users using the p2 provisioning platform.
The requirements for the provisioning of the application are as follows:
- Users need to be able to install additional features in order to customise their individual application.
- Users move between workstations, so their individual installation will need to follow them like a roaming profile.
- Updates to the application and any additional features need to be automatically applied to users' installations when they're made available.
- The solution shouldn't introduce significant load times for the application.
My current solution is to have users install the application to a network share so that each user has their own copy of the app in their own directory on the share. Users' workspaces are stored separately on their home network share and are fairly small. The application could be configured to check for updates from a p2 repository on start-up and download any updated features to the individual installation on the share. This supports requirements 1, 2 and 3, but incurs a significant overhead in load time as the application is around 500Mb. It's also wasteful in terms of the disk space used to store numerous copies of the same features.
I'm hoping that p2 could allow me to develop a better solution to this problem, and I can think of a number of possibilities, but my knowledge of p2 is fairly basic, and before I undertake a long investigation into the various options, I was wondering whether anyone has any experience using p2 to provide customisable, roaming profiles or could suggest whether this ought to be possible.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为你基本上想要一个 Linux 风格的共享安装。
本质上,在用户只读的位置有一个基本的 eclipse 安装。当用户运行时,他会获得自己的可写位置,通常在他的主目录下。用户可以安装存储在此可写位置下的附加功能。
基本安装的所有者 (root) 可以安装用户随后继承的附加功能。我相信,如果用户安装了自己的项目,而这些项目与根安装的升级不兼容,那么用户的添加就会丢失。
每当用户无权写入 Eclipse 安装位置时,这一切都会自动发生。不幸的是,我没有看到任何有关此细节的文档。
I think you basically want a linux style shared install.
Essentially there is a base eclipse install in a location that is read-only to the user. When the user runs, he gets his own writable location, usually under his home directory. The user can install additional features that are stored under this writable location.
The owner of the base install (root) can install additional features that the user then inherits. I believe if the user has installed his own items that are not compatible with upgrades to the root install, then the user's additions are lost.
This all happens automatically whenever the user does not have permission to write to the eclipse install location. Unfortunately I don't see any documentation for the specifics of this.