Search code examples
eclipseeclipse-plugineclipse-rcp

Setting custom property in config.ini


I want add a property that with a value that is a path to a local directory, for example, <property name="loc" value="C:\Program Files\myDir" />.

This works during the build, but when I retrieve this property I get C:Program FilesmyDir.

What is the right away to represent file references and URL references in config.ini?


Solution

  • Use forward slashes or replace each backslash with two backslashes:

    • C:/Program Files/myDir or
    • C:\\Program Files\\myDir