Defining Path Variables in Build Scripts
Hello,
How can I define a Path Variable (i.e Settings->Build, Execution, Deployment->Path Variables) inside a Build Script so that when the project is distributed and the standalone ide is started the Path Variables are inserted automatically?
Thanks
How can I define a Path Variable (i.e Settings->Build, Execution, Deployment->Path Variables) inside a Build Script so that when the project is distributed and the standalone ide is started the Path Variables are inserted automatically?
Thanks
Please sign in to leave a comment.
foreach userName in PathMacros.getInstance().getUserNames() { #print userName + ":" + PathMacros.getInstance().getValue(userName); }By the way, in case someone needs it, there is also another method of reading the path of a path-variable if you provide the specific name of the variable:
string path = MacrosFactory.getGlobal().expandPath("${name_of_the_variable}");Note: MacrosFactory is in MPS.Core -> jetbrains.mps.util