Using various Eclipse ini files

I use the Eclipse-based software client (Ganymede) and all its workable. However, one small thing would make my world perfect ...

There is an ini file in the Eclipse home folder. Is there a way to have different ini files and select (for example, arguments or environment variables) a particular ini file and create a shortcut for it?

Many thanks,

+7
source share
2 answers

You can make as many shortcuts you want with:

  • executable eclipse.exe
  • option -launcher.ini /your/eclipse.ini

See the Eclipse Help Page for Runtime Settings :

 --launcher.ini <location> (Executable) 

The location of the .ini file used.
If not specified, the executable will search for the file next to the launcher with the same name and .ini extension.
(i.e. eclipse.exe looking for eclipse.ini , product.exe looking for product.ini )

Thus, you can have several " eclipse.ini " files: each of them will be referenced as an argument in the --launcher.ini option.

+10
source

A simple way would be to have a shell script (for * nix) or a batch file for windows that could mimic the behavior you want

 #!/bin/ksh echo "first arg is the name of the ini file to use otherwise using default one" ln -s $1 eclipse.ini #launch eclipse 
0
source

All Articles