${USER} in Run Configuration | Program arguments

Answered

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?

0
2 comments

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.

1
Avatar
Permanently deleted user

Thanks. That sorted it.

0

Please sign in to leave a comment.