可作为带有参数交换的 OSGi 包执行

发布于 2025-01-01 08:41:22 字数 141 浏览 4 评论 0原文

我有一个特定的可执行文件,我想将其集成到我的 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

怎樣才叫好 2025-01-08 08:41:22

我不知道任何现有框架可以做到这一点,但您可以使用 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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文