Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse Java launch configuration file path

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.

like image 479
AtharvaI Avatar asked Feb 23 '11 17:02

AtharvaI


People also ask

Where are Eclipse launch configurations stored?

These configrations are located in . metadata/. plugins/org. eclipse.

How do I run a .launch file in Eclipse?

Just right click on the . launch file, select "Run As", and it's right there.


2 Answers

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.

like image 167
Luke Dicken Avatar answered Oct 06 '22 17:10

Luke Dicken


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.

like image 14
Aron Avatar answered Oct 06 '22 17:10

Aron