tangled developer

The truth is out there. Anybody got the URL?!

Changing eclipse ${user} variable value

Written by Venky Koneru · 13 Sep 2011

By default, eclipse uses the OS user name as the ${user} value. You can hard code the user’s real name in the eclipse @author templates.

I always use different workspaces for different projects.

As a result of it, I had to change the templates every time I create a new workspace.

There is a small workaround for this instead of changing the templates every time.

If your’s is a standard eclipse installation, then by adding the -Duser.name=ABC at the end of your eclipse.ini will put ABC in ${user}variable.

If your’s is a spring source powered Eclipse (STS), then apply the above changes to sts.ini file.

comments powered by Disqus