To set the ${user} variable in Eclipse, either:
- add the following line to the eclipse.ini file:
-Duser.name=[the_desired_user_name]
for example:
-Duser.name=mic.check@ows.com
- place the same code in your
JAVA_OPTS
environment variable if Eclipse is started from the command line - put the same construct on the command line when Eclipse is started. Eclipse extracts the
${user}
variable from system properties so any method that sets theuser.name
property will work.