Search code examples
compilationenvironment-variableshaxeopenfl

How do I access environment variables in an OpenFL project xml file


In an OpenFL project.xml file, how do you access environment variables, for example, to add a source path of $HOME/dev/haxe-js-kit

There's lots of information on the project XML format from the OpenFL website, but it doesn't mention the above.


Solution

  • Put the variable name in ${}, e.g.

    <source path="${HOME}/dev/haxe-js-kit" />