问题描述
我在Eclipse中有几个JUnit运行配置,我需要在命令行上复制这些配置才能使用第三方分析工具.到目前为止,我只是通过查看运行配置并编写适当的类路径和命令行参数来手动编写命令行.
I have several JUnit run configurations in Eclipse that I need to replicate on the command-line in order to use a third-party analysis tool. So far I've just been writing the command-line manually by looking at the run configuration and writing the appropriate classpath and command-line arguments.
无论如何,Eclipse的运行配置(普通,JUnit或其他)最终都必须归结为命令行,所以我如何以及在哪里找到它?
Eclipse's run configurations (normal, JUnit, or other) must ultimately boil down to a command-line anyway, so how and where do I find that?
推荐答案
我在Java的Stack Overflow上找到了解决方案程序运行配置,它也适用于JUnit运行配置.
I found a solution on Stack Overflow for Java program run configurations which also works for JUnit run configurations.
- 运行您的应用程序
- 转到调试"透视图
- 应该有一个您刚刚执行的应用程序(在调试"视图中)的条目(在调试"视图中)
- 右键单击引用java.exe或javaw.exe的节点,然后选择属性在弹出的对话框中,您将看到命令包含所有jar,参数等的行
这篇关于如何获得Eclipse运行配置的命令行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!