如何在程序分发中安装OSGi捆绑包
我有一个要转换为 OSGi 的应用程序,其中有几个 所需的捆绑包(目前)。这些是包含在 节目分发。安装这些的最佳方法是什么?我在找 使用 classpath:xxx.jar,但是有更好的方法吗?
谢谢, 槊
I have an application that I am converting to OSGi, and there are a couple of
bundles that are required (for now). These are jars that are included in the
program distribution. What is the best way to install these? I was looking
at using a classpath:xxx.jar, but is there a better way to do this?
thanks,
Lance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我猜您想要一种简单的方法来启动应用程序,而不必在每次启动时从控制台安装所有捆绑包。如果这是您当前的问题,您可以查看
I'm guessing that you want an easy way to start up your application, without having to install all bundles from the console at every startup. If that is your current problem, you can take a look at
另一种令人满意的方法是创建一个包含所有捆绑包的功能。请参阅提示 这里。功能是捆绑包的包,它允许您使用一个命令安装一堆捆绑包。
Another approach that could be satisfying is to create a feature containing all your bundles. See for a hint here. A feature is a package of bundles and it allows you to install a bunch of bundles with one command.