Eclipse:导出运行配置 [英] Eclipse: export running configuration
问题描述
有一个快速的方法来导出运行的应用程序的配置这让我从shell运行它(我实际上不需要在机器周围移动,所以没有jar导出或类似的东西)。
我只需要分离从Eclipse执行,但是由于项目有很多设置,我想自动导出一个脚本(也许.sh或一个简单的长行)。
您可以在调试选项卡上获取完整的配置命令,更具体地说是调试视图。
- 运行您的应用程序
- 转到您的调试视图
- 应用程序中应该有一个条目(在调试视图中)刚刚执行
- 右键单击引用java.exe或javaw.exe的节点,然后选择属性
- 在d ialog弹出你会看到命令行,其中包括所有的jar,参数等。
I wrote a complex Java application with eclipse that uses many .jar libraries included into project folder.
Is there a quick way to export a running configuration of the application that allows me to run it from shell (I don't actually need to move it around machines, so no jar export or similar things).
I just need to detach the execution from Eclipse, but since project has many settings I would like to export a script (maybe .sh or just a plain long line) automatically..
You can get the full command executed by your configuration on the Debug tab, or more specifically the Debug view.
- Run your application
- Go to your Debug perspective
- There should be an entry in there (in the Debug View) for the app you've just executed
- Right-click the node which references java.exe or javaw.exe and select Properties
- In the dialog that pops up you'll see the Command Line which includes all jars, parameters, etc
这篇关于Eclipse:导出运行配置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!