${USER} in Run Configuration | Program arguments
已回答
Hi all.
I have a run configuration and in there I have set something in the program arguments like:
--sub=${USER}
I would expect intellij to change the ${USER} symbol into the actual username of whoever runs the config but it doesn't, it stays as a string.
Any idea how to set the current user in the program arguments?
请先登录再写评论。
Check your system environment variables, if you are on Windows, use http://www.rapidee.com/.
The default environment variable for the user name on Windows is USERNAME, not USER.
Double check you specify the environment variable that exists on your system.
Thanks. That sorted it.