I'm looking for a file where Eclipse stores its launch configurations. I'm doing some Java development in Ubuntu.
我正在寻找Eclipse存储其启动配置的文件。我正在Ubuntu中进行一些Java开发。
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?
我正在开发的一个可执行文件需要另一个可执行文件的输出作为它的参数。因此,'B'的输出需要作为命令行参数传递给'A'。在Eclipse中,我不想每次都手动更改“运行配置”。 Eclipse在哪里存储这些配置尤其是参数?
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.
我在项目的extras文件夹中找到了一个“eclipseArguments.txt”,但这与我传递给Run Configurations的参数不同。 “.project”文件也不包含它。我很困惑。
Thanks for the help.
谢谢您的帮助。
3 个解决方案
#1
92
You can find the configuration files in :
您可以在以下位置找到配置文件:
<workspace>/.metadata/.plugins/org.eclipse.debug.core/.launches
<工作空间> /。元数据/ .plugins / org.eclipse.debug.core / .launches
There should be a *.launch
file for every configuration you have in this workspace stored there.
对于存储在此工作空间中的每个配置,都应该有一个* .launch文件。
#2
12
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.
我不确定Eclipse存储“本地”运行配置的位置(可能位于工作空间.metadata目录下),但在“运行配置”对话框的“公共”选项卡下,可以选择将其保存为“共享文件”在项目中,在这种情况下,它将显示在项目目录中。
#3
0
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.
我在Debug config中找到了它。一旦我运行模块,在调试窗口中我可以右键单击转到属性或类似的选项,然后有一个包含所有参数的完整路径。
#1
92
You can find the configuration files in :
您可以在以下位置找到配置文件:
<workspace>/.metadata/.plugins/org.eclipse.debug.core/.launches
<工作空间> /。元数据/ .plugins / org.eclipse.debug.core / .launches
There should be a *.launch
file for every configuration you have in this workspace stored there.
对于存储在此工作空间中的每个配置,都应该有一个* .launch文件。
#2
12
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.
我不确定Eclipse存储“本地”运行配置的位置(可能位于工作空间.metadata目录下),但在“运行配置”对话框的“公共”选项卡下,可以选择将其保存为“共享文件”在项目中,在这种情况下,它将显示在项目目录中。
#3
0
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.
我在Debug config中找到了它。一旦我运行模块,在调试窗口中我可以右键单击转到属性或类似的选项,然后有一个包含所有参数的完整路径。