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

你可能感兴趣的:(IDE)