简体   繁体   English

如何找出Eclipse路径变量或字符串变量(`$ {some_var}`)的值?

[英]How can I find out the value of an Eclipse path variable or string variable ( `${some_var}` )?

In Eclipse, one can use so called " path variables " and so called " string variables " at some places. 在Eclipse中,可以在某些地方使用所谓的“ 路径变量 ”和所谓的“ 字符串变量 ”。 For example, in a "run configuration", the base directory can be set to ${project_loc:/${project_name}} instead of providing a static value. 例如,在“运行配置”中,基目录可以设置为${project_loc:/${project_name}}而不是提供静态值。

How can I find out the value of such a variable (or the value of an expression consisting of possibly several variables)? 如何找出这样一个变量的值(或者包含可能包含多个变量的表达式的值)?

Open the Project "Properties" dialog. 打开项目“属性”对话框。 On the left-side menu, expand "Resource" and click on "Linked Resource". 在左侧菜单中,展开“资源”,然后单击“链接的资源”。 This will should immediately show the defined "Path Variables" on the big right panel, including $project_loc$. 这将立即在右侧右侧面板上显示定义的“Path Variables”,包括$ project_loc $。 Note you can also add new variables to your project. 请注意,您还可以向项目中添加新变量。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM