如何获得Eclipse运行配置的命令行? [英] How do I get the command-line for an Eclipse run configuration?

查看:57
本文介绍了如何获得Eclipse运行配置的命令行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在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.

您可以在配置文件中获取由配置执行的完整命令.调试标签,或更确切地说是调试"视图.

You can get the full command executed by your configuration on the Debug tab, or more specifically the Debug view.

  1. 运行您的应用程序
  2. 转到调试"透视图
  3. 应该有一个您刚刚执行的应用程序(在调试"视图中)的条目(在调试"视图中)
  4. 右键单击引用java.exe或javaw.exe的节点,然后选择属性在弹出的对话框中,您将看到命令包含所有jar,参数等的行

这篇关于如何获得Eclipse运行配置的命令行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆