代码之家  ›  专栏  ›  技术社区  ›  phil swenson

Eclipse:如何在.target和.launch文件中引入变量

  •  0
  • phil swenson  · 技术社区  · 15 年前

    现在,我们在eclipse中有指向特定硬编码位置的.target和.launch文件。如何在eclipse中引入新变量并分配它们,这些变量是每个开发人员的本地变量。

    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <?pde version="3.6"?>
    
    <target name="OSGI-installed">
    <locations>
    <location path="${projectlocation}\trunk\CACHE\junit4.TransformedRepo" type="Directory"/>
    <location path="${projectlocation}\trunk\CACHE\mokito.repo" type="Directory"/>
    <location path="${projectlocation}\trunk\CACHE\p2EDARepo" type="Directory"/>
    <location path="${projectlocation}\trunk\CACHE\p2BundlesRepo" type="Directory"/>
    </target>
    
    1 回复  |  直到 15 年前
        1
  •  1
  •   phil swenson    15 年前

    转到此设置:windows/preferences/Run/Debug/String Substitutions并添加变量,如${variableName}