Eclipse Java launch configuration file path

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-03 02:34:50

问题


I'm looking for a file where Eclipse stores its launch configurations. I'm doing some Java development in Ubuntu.

One of the executables i'm developing requires an output from another executable as a argument to it. So say, the output of 'B' needs to be passed as a commandline argument to 'A'. In the Eclipse, I don't want to manually change the "Run Configuration" every time. Where does Eclipse store these configurations esp the arguments?

I found a "eclipseArguments.txt" in the extras folder of the project but this isn't the same as the arguments I'm passing into the Run Configurations. The ".project" file doesn't contain it either. I'm confused.

Thanks for the help.


回答1:


You can find the configuration files in :

<workspace>/.metadata/.plugins/org.eclipse.debug.core/.launches

There should be a *.launch file for every configuration you have in this workspace stored there.




回答2:


I'm not certain where Eclipse stores the 'local' run configurations (likely somewhere under the workspace .metadata directory), but under the 'common' tab of the Run Configurations dialog, there's an option to save it as a 'Shared file' within a project, in which case it will show up in your project directory.




回答3:


I found it in Debug config. Once I run module, in the debug window I can right click an go to Properties or some similar option and then there is a full path with all arguments.



来源:https://stackoverflow.com/questions/5094786/eclipse-java-launch-configuration-file-path

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!