Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 135727

Summary: Passing -Duser.name="Custom User Name" arg via Eclipse shortcut does not reflect in a Class' Javadoc's @author tag.
Product: [Eclipse Project] JDT Reporter: Rahul Thakur <rahul.thakur.xdev>
Component: TextAssignee: JDT-Text-Inbox <jdt-text-inbox>
Status: CLOSED WORKSFORME QA Contact:
Severity: normal    
Priority: P3    
Version: 3.2   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Rahul Thakur CLA 2006-04-08 17:32:38 EDT
I have set -Duser.name="Rahul Thakur" via the Eclipse Shortcut on Windows XP, but when I add @author tag in the Class' javadoc comment or let Eclipse generate new Class' javadoc, the username picked up and interpolated is "rahul" which is the current logged user not "Rahul Thakur".
This was working till 3.2M5 (not sure about M5a), but does not seems to work in 3.2M6.
Comment 1 Philipe Mulet CLA 2006-04-09 12:42:56 EDT
Passing to JDT/UI who does the insertion, suspect this comes from below them.
Comment 2 Dani Megert CLA 2006-04-09 12:51:37 EDT
This works for me using N20060407-0010. Make sure
- you pass in "-Duser.name="Rahul Thakur" as vm arguments
- didn't manually modify the templates
Comment 3 Dani Megert CLA 2006-04-09 12:54:54 EDT
.
Comment 4 Rahul Thakur CLA 2006-04-09 16:21:58 EDT
Marking this closed! I was missing a hyphen from the 'vmargs', should have been "-vmargs". Apologise for the noise, it works :">  

Thanks Daniel!