Using various Eclipse ini files
I am using a software client based on Eclipse (Ganymede) and its all working fine. However, one small thing would make my world perfect...
In the Eclipse home folder, there is an ini-fil开发者_开发百科e. Is there a way to have various ini-files and choose (for example by arguments or environment variables) a specific ini file and create a shortcut for it?
Many thanks,
You can make as many shortcut you want with the:
- the
eclipse.exe
executable - the option
--launcher.ini /your/eclipse.ini
See Eclipse Help page on Runtime Options:
--launcher.ini <location> (Executable)
The location of the product
.ini
file to use.
If not specified the executable will look for a file beside the launcher with the same name and the extension.ini
.
(ieeclipse.exe
looks foreclipse.ini
,product.exe
looks forproduct.ini
)
So you can have more than one "eclipse.ini
" file: each one will be referenced as an argument within the --launcher.ini
option.
The easy way would be to have a shell script (for *nix) or batch file for windows that would simulate the behaviour 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
精彩评论