在 Eclipse IDE 外部启动运行配置
我为 Eclipse RCP 应用程序定义了一个运行配置,并将其保存到 .launch 文件中。有没有办法在 Eclipse IDE 之外使用此启动配置?即,如果能够从命令行启动应用程序以实现持续集成,那就太好了。
I have a run configuration defined for my Eclipse RCP application which is saved to a .launch file. Is there a way to use this launch configuration outside the Eclipse IDE? i.e, it would be nice to be able to launch the application from the command line for continuous integration purposes.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您可以获取 Eclipse 使用的命令行:
You can get the command line Eclipse uses:
是的,您可以创建并导出 产品配置基于您的启动配置:
产品编辑器应自动打开。在导出部分中,您应该能够使用“Eclipse 产品导出向导”导出您的产品。
资源:Eclipse 常见问题解答 - 如何部署我的 RCP 应用程序
看一下PDE 构建教程。它解释了如何使用 Ant 构建和测试(或运行)您的产品。
Yes, you could create and export a product configuration based on your launch-configuration:
The product editor should open automatically. In the Exporting section you should be able to export your product using the "Eclipse Product export wizard".
Resource: Eclipse FAQ - How can I deploy my RCP app
Have a look at this PDE Build tutorial. It explains how to build and test (or run) your product using Ant.
通过一些解决方法就可以做到这一点。您可以在
workspace\.metadata\.plugins\org.eclipse.debug.core\.launches
中找到您的配置。因此,在文本编辑器中打开它并找到包含目标的属性,例如
clean install -DskipTests=true
。然后,转到项目的根目录并通过< code>CMD:
这对于其他目标应该是类似的。
It is possible to do that with a little workaround. You can find your configuration at
workspace\.metadata\.plugins\org.eclipse.debug.core\.launches
.So, open it in text editor and find an attribute containing goals, e.g.
clean install -DskipTests=true
.Then, go to the root of your project and execute that by the
CMD
:This should be similar for other goals.