What are the predefined variables in eclipse?

With eclipse, I know how to use variables in my startup configurations. I also know that there is a set of predefined variables, such as ECLIPSE_HOMEor WORKSPACE_LOC.

What I don't know is an extensive list of these predefined variables (i.e.: variable names and values). Is there such a resource?

+4
source share
4 answers

I found a very good example about path variables in the eclipse help documentation: workbench-concept-user-guide-ant and external tools

, Eclipse - c:\eclipse\workspace, : MyProject1 MyProject2. MyProject1 , MyProject2 c:\projects\MyProject2. , , /MyProject 2/MyFolder/MyFile.txt.

<p>

    ${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

</p>
+3

, , "" , "..." , .

, , , .

+1

Open the settings and find "Class Variables".

0
source

${workspace_loc}

and

${ProjDirPath}

worked for me at Eclipse Oxygen.

0
source

Source: https://habr.com/ru/post/1589160/


All Articles