eclipse.ini文件中的环境变量 [英] Environment variables in eclipse.ini file

查看:410
本文介绍了eclipse.ini文件中的环境变量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

eclipse.ini或eclipse命令行是否支持诸如$PATH${java.home}的变量解析?

Does eclipse.ini or eclipse command line support variable parsing such as $PATH or ${java.home}?

推荐答案

中提到的那样:常见问题解答:我该怎么办运行Eclipse?

如果在eclipse/jre目录下可用,将使用Eclipse JRE.否则,启动程序将查询系统路径变量. Eclipse不会查询JAVA_HOME环境变量.

If available under the eclipse/jre directory, the Eclipse JRE will be used; otherwise the launcher will consult the system path variable. Eclipse will NOT consult the JAVA_HOME environment variable.

eclipse命令行可以使用环境变量(就像其他任何命令一样):

a eclipse command line can use environment variable (like any other command):

eclipse -vm $jAVA_HOME/bin

会工作的.

但是Eclipse本身(或eclipse.ini)将不会直接使用解析环境变量.
eclipse.ini这样的使用完整路径.

But Eclipse itself (or eclipse.ini) will not use parse directly an environment variable.
A eclipse.ini like this one only use full paths.

实际上,错误102239 已经在要求这种功能...自2005年以来!

Actually, bug 102239 is already asking for that kind of feature... since 2005!

错误102239-[启动器] <launcher>.ini/eclipse.ini

如果启动器支持在<launcher>.ini中插入环境变量,这将非常有帮助.
不论哪种形式都可能有意义(例如@ENV%ENV%${ENV}${env_var:ENV})

It'd be very helpful if the launcher would support the insertion of environment variables in the <launcher>.ini.
Whatever form might make sense (e.g. @ENV, %ENV%, ${ENV}, ${env_var:ENV})

例如像

-vm
${MYRCPAPP_VM}
-mx${MYRCPAPP_HEAPSIZE}

但是答案需要帮助:

启动器是用C编写的.代码在platform-launcher项目中.

The launcher is written in C. The code is in the platform-launcher project.

[To]希望在包括vm,vmargs等在内的任何参数上使用此命令,在这种情况下,这需要在本机代码中进行.

[To] want this on any argument including the vm, vmargs etc, in which case this would need to happen in the native code.

这篇关于eclipse.ini文件中的环境变量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆