Cannot use USER_HOME path variable in TestNG run configuration VM arguments


I am in the process of migrating from Eclipse and I read about path variables to parametrize our shared run configurations and it seems like a perfect fit. However, when I tried to add "USER_HOME" as a path variable, I got an error dialog reading "A variable named "USER_HOME" already exists". I thought, fine, it's a predefined one and used it in the VM params of my TestNG run config but it was not substituted. The string that was used in the command line was this:


However, other variables were substituted as expected. What am I doing wrong?

Thank you,


1 comment
Comment actions Permalink

Found a solution myself. Just posting this for anyone running into this: Just typing the actual path like "/Users/foo/somepath" did the job and was automatically replaced by "$USER_HOME$/somepath" in the project file once I shared the configuration. Super-smart :-).


Please sign in to leave a comment.