通过部署的 OSGI 包的脚本(Ant 或其他)生成春分环境和配置
我正在寻找一种方法来生成已部署的 OSGI 包的可运行的春分配置。
构建服务器通过 maven 和 tycho-plugin 部署我们的 OSGI 包,并将它们放置在 m2 目录中。 现在,下一步是从部署目录收集捆绑包并将它们放在春分配置中并启动容器。
收集捆绑包并手动配置 equinox 容器不是我喜欢的方式,所以现在我正在寻找一种通过脚本自动执行此操作的方法。
有类似ANT脚本的解决方案吗?
希望得到帮助
I am searching for a way to generate a run able equinox configuration of deployed OSGI bundles.
A build server deploys our OSGI bundles via maven and tycho-plugin and placed them in the m2 directory.
Now, the next step is to collect the bundles from the deployment directory and put them together in a equinox configuration and start up the container.
Collect the bundles and configure the equinox container manually is not the way I prefer so now I looking for a way to do this automatically via script.
There are solutions like ANT script?
Hoping for Help
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
构建一个“产品”(即完全独立的 OSGi 运行时)。
请参阅一般性的第谷文档 [1] 和 esp。第谷教程 [2] 的练习 5 和解决方案 [3]
[1] http://eclipse.org/ tycho/documentation.php
[2] http://eclipsecon.org/sessions/building-eclipse-plugins-and-rcp-applications-tycho
[3] https://github.com/jsievers/tycho-demo/tree/master/exercises/Exercise_06_Solution
Build a "product" (i.e. a fully self-contained OSGi runtime).
See the tycho docs in general [1] and esp. exercise 5 of the tycho tutorial [2] with solution [3]
[1] http://eclipse.org/tycho/documentation.php
[2] http://eclipsecon.org/sessions/building-eclipse-plugins-and-rcp-applications-tycho
[3] https://github.com/jsievers/tycho-demo/tree/master/exercises/Exercise_06_Solution
您可以做的一件事是生成一个
config.ini
文件,您可以将其放入configuration/
目录中。其中的 osgi.bundles 条目允许您指定要安装和启动的包,例如:config.ini 内容:
启动 equinox 时您可能需要指定配置目录确保
config.ini
被选中,例如One thing you could do is generate an
config.ini
file which you can put in yourconfiguration/
directory. Theosgi.bundles
entry in there allows you to specify what bundles to install and start, e.g.:config.ini
content:You may need to specify the configuration directory when launching equinox to ensure the
config.ini
is picked up, e.g.您可以使用 https://github.com/sarod/equinox-config-builder 来从插件目录轻松生成 config.ini。
You can use https://github.com/sarod/equinox-config-builder to easily generate a config.ini from a plugins directory.