Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.4
-
Fix Version/s: None
-
Labels:None
-
Environment:Clearcase, Windows XP
-
Number of attachments :
Description
With exactly the same project.xml I see this type of thing in the changelog.xml generated using the CVS changelog factory:
<changelog-entry>
<date>2004-04-14</date>
<time>11:05:28</time>
<author><![CDATA[Matt Read]]></author>
However with Clearcase factory I get this:
<changelog-entry>
<date>2004-04-15</date>
<time>10:28:28</time>
<author><![CDATA[readm ]]></author>
I.e. it's using the developer.id from project.xml instead of the developer.name. It's also padding with whitespace which might also be causing problems.
Symptoms of this are that although the changelog report and file activity reports are correct, the Developer Activity report is blank as it's unable to match author to name.
Adding a .trim() to the setAuthor() method when parsing the output of the "cleartool lshistory" command in ClearcaseChangeLogParser.java fixes the majority of problems, EXCEPT when the Clearcase user id is longer than 8 characters. I'll work on a more complete patch when I have more than 5 mins.
Index: ClearcaseChangeLogParser.java
===================================================================
RCS file: /home/cvspublic/maven-plugins/changelog/src/main/org/apache/maven/clearcaselib/ClearcaseChangeLogParser.java,v
retrieving revision 1.3
diff -u -r1.3 ClearcaseChangeLogParser.java
— ClearcaseChangeLogParser.java 2 Mar 2004 15:00:18 -0000 1.3
+++ ClearcaseChangeLogParser.java 26 Apr 2004 14:15:03 -0000
@@ -250,7 +250,7 @@
}
else if (line.startsWith(USER_TAG))
{
+ getCurrentLogEntry().setAuthor(line.substring(USER_TAG.length()).trim());
// add entry, and set state to get file
addEntry(getCurrentLogEntry(), getCurrentFile());
setStatus(GET_FILE);