是否可以使eclipse p2配置机制在本地*运行? [英] Is it possible to make an eclipse p2 provisioning mechanism running *locally*?

查看:231
本文介绍了是否可以使eclipse p2配置机制在本地*运行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Eclipse 3.4 [.x] - 也称为 Ganymede - 附带了这种新机制的配置称为 p2

Eclipse 3.4[.x] - also known as Ganymede - comes with this new mechanism of provisioning called p2.

配置是允许根据需要发现和更新应用程序的某些部分的过程,如一般性解释在本文中关于 Sun网站的文章。

"Provisioning" is the process allowing to discover and update on demand some parts of an application, as explained in general in this article on the Sun Web site.

Eclipse具有扩展的 wiki部分,其中提供了p2细节。
具体来说,它在这个维基页面中说,p2会寻找新的组件
但是在阅读之后。

Eclipse has an extended wiki section in which p2 details are presented. Specifically, it says in this wiki page that p2 will look for new components However after reading it.

我想(但你可以确认这个点你自己的经验),p2可以运行文件file://协议,这将允许它使用本地文件(在您的计算机上或UNC路径'\ server \path'),此处显示,还可以通过文件:

I suppose (but you may confirm that point by your own experience), that p2 can function file "file://" protocol, which would allow it to provision with local file (either on your computer or on an UNC path '\server\path'), as illustrated here, but also by the files:


  • [eclipse-SDK-3.4-win32] \eclipse\configuration\.settings\org.eclipse.equinox.p2.artifact.repository.prefs [/ e]
    b $ b
  • [eclipse-SDK-3.4-win32]\eclipse\configuration\.settings\org.eclipse.equinox.p2.artifact.repository.prefs
  • [eclipse-SDK-3.4-win32]\eclipse\configuration\.settings\org.eclipse.equinox.p2.metadata.repository.prefs

p2机制用于更新eclipse本身,通过 eclipse 3.4更新站点,和在这些'.prefs'文件中引用这样的行:

p2 mechanism is used to update eclipse itself, through an eclipse 3.4 update site, and reference in those '.prefs' files with line like:


存储库/文件:_C:_jv_eclipse_eclipse-SDK-3.4-win32_eclipse / url =文件:/ C:/jv/eclipse/eclipse-SDK-3.4-win32/eclipse /

repositories/file:_C:_jv_eclipse_eclipse-SDK-3.4-win32_eclipse/url=file:/C:/jv/eclipse/eclipse-SDK-3.4-win32/eclipse/

现在,我如何复制该更新站点中的eclipse组件进入本地目录,并通过所提到的.prefs文件引用这些组件,以使升级过程完全在本地运行,而无需访问网络? br>
我想在远程更新站点中存在的一些p2元数据文件需要被复制和更改。

Now, how could I replicate the eclipse components present in that update site into a local directory and reference those components through the mentioned '.prefs' files, in order to have an upgrade process entirely run locally, without having to access the web?
I suppose that some p2 metadata files present in the distant 'update site' need to be replicated and changed as well.

你有什么想法/建议/提示呢? (即如何发现和检索并更新完整的eclipse安装所需的完整结构,以便在本地运行该安装)

Do you have any thoughts/advice/tips on that ? (i.e. on how to discover and retrieve and update the complete structure needed for a full eclipse installation, in order to run that installation locally)

推荐答案

是的,您可以指定存储库位置,如果您使用p2.director

Yes, you can specify the repository locations if you use the p2.director

这个例子是我用来安装eclipse的代码片段(Ganymede )从Ganymede存储库的本地副本

this for example is a snippet of a script that I use to install eclipse (Ganymede) from a local copy of the Ganymede repository

./eclipse\
      -nosplash -consolelog -debug\
      -vm "${VM}"\
      -application org.eclipse.equinox.p2.director.app.application\
      -metadataRepository file:${SHARED_REPOSITORY_DIR}\
      -artifactRepository file:${SHARED_REPOSITORY_DIR}\
      -installIU "${4-org.eclipse.sdk.ide}"\
      -destination "${3}"\
      -profile "${1}"\
      -profileProperties org.eclipse.update.install.features=true\
      -bundlepool ${SHARED_BUNDLEPOOL_DIR}\
      -p2.os linux\
      -p2.ws gtk\
      -p2.arch "${2}"\
      \
      -vmargs\
        -Xms64m -Xmx1024m -XX:MaxPermSize=256m\
        -Declipse.p2.data.area=${SHARED_P2_DIR}

以下是使用p2导演的一些链接

Here are some links to use the p2 director

http://eclipse.dzone.com/articles/understanding-eclipse-p2-provi

http://wiki.eclipse.org/Equinox_p2_director_application

这篇关于是否可以使eclipse p2配置机制在本地*运行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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