gpt4 book ai didi

eclipse - eclipse中的预定义变量是什么?

转载 作者:行者123 更新时间:2023-12-04 11:36:39 25 4
gpt4 key购买 nike

使用eclipse,我知道如何在启动配置中使用变量。我还知道存在一组预定义变量,例如ECLIPSE_HOMEWORKSPACE_LOC

我不知道这些预定义变量的广泛列表(即:变量名称和值)。有这样的资源吗?

最佳答案

我在eclipse帮助文档中找到了一个有关路径变量的很好的例子:workbench user guide-concepts-ant & external tools假设您的Eclipse工作区目录为:c:\eclipse\workspace,并且您有两个项目MyProject1MyProject2。第一个项目MyProject1位于工作空间目录中,第二个项目MyProject2位于工作空间目录之外的c:\projects\MyProject2。让我们看一下如果选择了资源/MyProject2/MyFolder/MyFile.txt时,在运行外部工具时如何扩展下面的变量示例。

    ****Variable Example ~~> Expanded Results****

${workspace_loc} ~~> c:\eclipse\workspace
${workspace_loc:/MyProject1/MyFile.txt} ~~> c:\eclipse\workspace\MyProject\MyFile.txt
${workspace_loc:/MyProject2/MyFile.txt} ~~> c:\projects\MyProject2\MyFile.txt
${project_loc} ~~> c:\projects\MyProject2
${project_loc:/MyProject1/MyFile.txt} ~~> c:\eclipse\workspace\MyProject
${container_loc} ~~> c:\projects\MyProject2\MyFolder
${resource_loc} ~~> c:\projects\MyProject2\MyFile.txt
${project_path} ~~> /MyProject2
${container_path} ~~> /MyProject2/MyFolder
${resource_path} ~~> /MyProject2/MyFolder/MyFile.txt
${project_name} ~~> MyProject2
${container_name} ~~> MyFolder
${resource_name} ~~> MyFile.txt
${build_type} ~~> none

关于eclipse - eclipse中的预定义变量是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30369044/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com