Is there a way to setup Linked Resources relative to the .project file?

前端 未结 2 1896
时光取名叫无心
时光取名叫无心 2020-12-08 04:48

We have a Flash Builder (which is based on Eclipse) project that pulls source from different locations, included in the source control in which the project is. As per our or

相关标签:
2条回答
  • 2020-12-08 05:31

    It is possible since Eclipse 3.6 (Helios)

    Open the project properties and goto Resources > Linked Resources > Path Variables.

    There you can create a new variable relative to an existing one. For instance:
    Name: MY_SOURCE_FOLDER
    Location: ${PROJECT_LOC}\..\src

    This will add a new Path variable to your .project file with a value like:

    $%7BPARENT-1-PROJECT_LOC%7D/src
    

    meaning ${PARENT-1-PROJECT_LOC}/src, where the 1 means the parent directory 1 times above PROJECT_LOC.

    0 讨论(0)
  • 2020-12-08 05:31

    With eclipse 3.7, giving this path :

    C:\projects\workspace\project1
    C:\projects\workspace\project2
    

    Within project1 you can do :

    PROJECT_LOC => C:\projects\workspace\project1
    PARENT-1-PROJECT_LOC => C:\projects\workspace
    PARENT-2-PROJECT_LOC => C:\projects\
    PARENT-1-PROJECT_LOC\project2 => C:\projects\workspace\project2
    
    0 讨论(0)
提交回复
热议问题