可作为带有参数交换的 OSGi 包执行
我有一个特定的可执行文件,我想将其集成到我的 Eclipse RCP 框架中。是否可以将 exe 打包在一个包中,定义起点和参数并将其作为框架中的单独工具启动?另一个问题则相反。我可以从可执行包中检索返回值,甚至可以即时交换参数/值/某些内容吗?
谢谢
I have a particular executable that I would like to integrate in my Eclipse RCP Framework. Is it possible to wrap the exe in a bundle, define the startingpoints and parameters and start it as a separate tool from my framework? The other question refers to the other way round. Can I retrieve returnvalues from an executable bundle or even exchange parameters/values/something on the fly?
Thank you
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不知道任何现有框架可以做到这一点,但您可以使用 Apache Commons Exec 运行可执行文件或注册的自定义包中的 ProcessBuilder它作为服务。显然,它需要一些编码,并且依赖于平台,
exe
文件在 Windows 上运行。这个问题也可能有帮助:包含 OSGi 捆绑包中的其他资源
I don't know any existing framework which does that but you can run the executable with Apache Commons Exec or ProcessBuilder in a custom bundle which registers it as service. It obviusly needs some coding and it will be platform dependent,
exe
files runs on Windows.This question also could help: Including additional resources with OSGi bundles