Eclipse – How to set ${user} in Eclipse to get the correct @author tag?


Possible Duplicate:
How to change the value of ${user} variable used in Eclipse templates

I am using Eclipse and every time code is created, @author is set to the value of ${user}.
Unfortunately,${user} seems to contain my windows login id.
Is there a way to override this through Eclipse?
I couldn't find the option.

Best Solution

I'm not sure if there's a way in Eclipse itself. But from what I can find, ${user} uses the value of the environment variable; therefore, you can pass Name in eclipse.ini to override it.

Or, if you prefer, you can modify the shortcut to point to:

C:/java/eclipse/eclipse.exe -vmargs"cleverUserNameToUseInSourceCode"

as shown in this blog entry.

@author ${user}