eclipse.ini变量 [英] eclipse.ini variables
问题描述
eclipse.ini或eclipse命令行是否执行变量解析?
does eclipse.ini or eclipse command line does variable parsing?
如$ PATH或$ {java.home}?
such as $PATH or ${java.home} ?
推荐答案
如果在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 like this one 使用完整路径。
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]环境变量替换
< 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}
但答案要求您提供帮助:
But the answers ask for help on this:
启动器用C编写。代码在平台启动器项目中。
The launcher is written in C. The code is in the platform-launcher project.
对于任何参数,包括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屋!