问题描述
eclipse.ini
或eclipse命令行是否支持诸如$PATH
或${java.home}
的变量解析?
Does eclipse.ini
or eclipse command line support variable parsing such as $PATH
or ${java.home}
?
推荐答案
如中提到的那样:常见问题解答:我该怎么办运行Eclipse?
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!
如果启动器支持在<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}
但是答案需要帮助:
[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文件中的环境变量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!