使用各种 Eclipse ini 文件

发布于 2024-10-08 13:08:15 字数 173 浏览 0 评论 0原文

我正在使用基于 Eclipse (Ganymede) 的软件客户端,它一切正常。 然而,一件小事将使我的世界变得完美......

在 Eclipse 主文件夹中,有一个 ini 文件。有没有办法拥有各种 ini 文件并选择(例如通过参数或环境变量)特定的 ini 文件并为其创建快捷方式?

非常感谢,

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-file. 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,

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

终难遇 2024-10-15 13:08:15

您可以使用以下命令创建任意多个快捷方式:

  • eclipse.exe 可执行文件
  • 选项 --launcher.ini /your/eclipse.ini

请参阅 关于运行时的 Eclipse 帮助页面选项

--launcher.ini <location> (Executable)

要使用的产品 .ini 文件的位置。
如果未指定,可执行文件将在启动器旁边查找具有相同名称和扩展名 .ini 的文件。
(即 eclipse.exe 查找 eclipse.iniproduct.exe 查找 product.ini

( 可以有多个“eclipse.ini”文件:每个文件都将作为 --launcher.ini 选项中的参数进行引用。

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.

濫情▎り 2024-10-15 13:08:15

最简单的方法是使用 shell 脚本(对于 *nix)或 Windows 批处理文件来模拟您想要的行为

#!/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

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
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文