Eclipse External Tools --变量设置

转自:http://cyf0110.iteye.com/blog/1338635

外部工具的输出显示在控制台视图中。
在配置外部工具时可使用如下变量:
workspacelocworkspace {workspace_loc:}:
所指定的resource的绝对路径。resource path是相对于workspace root的完整路径。
注意: workspaceloc:/myproject/myfile.txt {workspace_loc}/myproject/myfile.txt不一定相同,因为前者表示的myfile.txt可能位于workspace之外。
projectlocresourceprojectproject {project_loc:}:
所指定的resource所在的project的绝对路径。resource path是相对于workspace root的相对路径。
projectpathprojectprojectworkspaceroot {project_name}
当前选择的资源所在的project或者正构建的project的名称
containerlocparent {container_loc:}
所指定的resource的parent的绝对路径
resourceloc {resource_loc:}
所指定的资源的绝对路径
containerpathparentworkspaceroot {resource_path}
当前选定的资源的相对于workspace root的路径
containernameparent {resource_name}
当前选定的资源的名称
buildtypefullincrementalautononeworkspacec:\eclipse\workspaceprojectMyProject1MyProject2MyProject1workspaceMyProject2workspacec:\projects\MyProject2/MyProject2/MyFolder/MyFile.txtVariableExamplesExpandedResults {workspace_loc} c:\eclipse\workspace
workspaceloc:/MyProject1/MyFile.txtc:\eclipse\workspace\MyProject\MyFile.txt {workspace_loc:/MyProject2/MyFile.txt} c:\projects\MyProject2\MyFile.txt
projectlocc:\projects\MyProject2 {project_loc:/MyProject1/MyFile.txt} c:\eclipse\workspace\MyProject
containerlocc:\projects\MyProject2\MyFolder {resource_loc} c:\projects\MyProject2\MyFile.txt
projectpath/MyProject2 {container_path} /MyProject2/MyFolder
resourcepath/MyProject2/MyFolder/MyFile.txt {project_name} MyProject2
containernameMyFolder {resource_name} MyFile.txt
${build_type} none

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值