Sat 22 Dec 2007
Setting User Name in Eclipse and ${user} Variable
Posted by admin under eclipse , programming1 Comment
It seems there are basically two ways to set the correct author name (opposed to the system user name Eclipse is using per default) in Eclipse as it appears for example within the autogenerated javadoc comments.
First using -vmargs settings:
eclipse -clean -showlocation -vmargs -Xms512m -Xmx900m -XX:PermSize=128m -XX:MaxPermSize=128m -Duser.name="Your full name"
The other one is just by changing the associated templates in Window -> Preferences -> Java -> Editor -> Templates -> @author , hardcoding the author’s name.
February 5th, 2010 at 8:43 pm
Good to know.
Come to think of it, you can also set that value, on a host-wide basis, within the file, eclipse.ini, in the Eclipse installation directory – e.g. C:\Program Files\Eclipse\eclipse-jee-galileo-SR1-win32\eclipse\eclipse.ini . For all of the single-user machines around, I suppose that could save some time in editing shortcuts or application launcher files.