如何查看eclipse使用的shell命令“运行配置" [英] How to view shell commands used by eclipse "run configurations"

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

问题描述

给定 Eclipse 中的运行配置",我想打印出将用于运行它的关联 shell 命令.

Given a "run configuration" in Eclipse, I want to print out the associated shell command that would be used to run it.

例如:现在,在 Eclipse 中,如果我单击播放",它将运行:

mvn assembly:directory -Dmaven.test.skip=true

For example: Right now, in Eclipse, if I click "play" it will run:

mvn assembly:directory -Dmaven.test.skip=true

我没有看到那个命令,我只知道 IDE 在某些时候必须运行它.但是,其他一些运行配置要复杂得多,具有较长的类路径和虚拟机选项,坦率地说,有时我不知道等效的 shell 命令是什么(尤其是在涉及 Flex 时).

I don't see that command, I just know that's what the IDE must run, at some point. However, some of the other run configurations are far more complex with long classpaths and virtual machine options and, frankly, sometimes I have no idea what the equivalent shell command would be (particularly when it comes to Flex).

必须有某种方式来访问与 Eclipse/Flex Builder 中的运行配置"相关联的 shell 命令.这些信息必须可用,这让我相信有人编写了一个插件来显示它.或者,也许 Eclipse 中已经内置了一个用于访问它的选项.

There must be some way to access the shell command that would be associated with a "Run Configuration" in Eclipse/Flex Builder. This information must be available, which leads me to believe someone has written a plugin to display it. Or maybe there's already an option built into Eclipse for accessing this.

那么有没有一种方法可以将 Eclipse 运行配置转换为 shell 命令?

So is there a way to, essentially, convert an Eclipse run configuration into a shell command?

(仅用于上下文:我之所以这么问是因为我正在编写一个 bash 脚本,该脚本可以在开发过程中自动执行我所做的一切——从填充数据库一直到打开 Firefox 并在运行之前清除缓存web 应用程序.所以我从 IDE 运行的每个命令都需要存在于脚本中.有些很难弄清楚.)

推荐答案

这应该适用于 Java 和 Maven 进程.您可以从 Process 属性中获取命令行.

This should work for Java and Maven processes. You can get the command line from the Process properties.

  • 在调试模式下运行进程
  • 在调试"视图中右键单击流程项并选择属性"
  • 显示命令行

这篇关于如何查看eclipse使用的shell命令“运行配置"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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