views:

23

answers:

5

Hi,

In our eclipse project we have some jvm arguments that are required for the project to work. The project is connected to clearcase for version control.

How can we add the jvm arguments to version control so new developers will have them set up when they join the project (or have the rest of the team updated when someone makes a change)?

Thanks,

Alex

A: 

Where are theses JVM arguments needed? At the launch of Eclipse? For the compilation of your project?

If you need JVM arguments at the launch of Eclipse, you have to edit the "eclipse.ini file", at the root of your Eclipse installation folder.

If you need JVM arguments at compile time, you can customize them in Eclipse preferences.

Benoit Courtine
A: 

You can add them to a launcher that you will:

  • export within your current version-control workspace
  • version

See where are the external tools launch configurations in Eclipse.
See also blog post "Tip: Creating and Sharing Launch Configurations"

alt text

Select the 'Shared file' option. Select the project to which this launch configuration belongs. I suggest the launch configurations to be saved at the root of the project directory.

VonC
A: 

have you tried adding it to your build.xml?

jonney
A: 

I would create lunch configuration that can be imported later on. First create a run/debug configuration, for successful run on your local pc. If it is team project this run configuration will be fine on others machines. Then export it: file->export-> run/debug->launch configuration and select correct one that you have created. Then you will get that exported to the file that can be kept under version control. To import it do file-> import -> run/debug -> launch configuration and select the file.

Gadolin
Mmmmm... lunch...
Steven Schlansker
A: 

Thanks alot everyone, Von's answer is the best for me since it keeps the configuration automatic for everyone (no need to export/import on every change)

Alex