开发者

Using various Eclipse ini files

开发者 https://www.devze.com 2023-01-31 21:35 出处:网络
I am using a software client based on Eclipse (Ganymede) and its all working fine. However, one small thing would make my world perfect...

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.
(ie eclipse.exe looks for eclipse.ini, product.exe looks for product.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
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号