donaldp 02/04/15 02:07:21
Modified: src/main/org/apache/tools/ant/taskdefs/cvslib
ChangeLogParser.java
Log:
cvschangelog detects ends of comments by looking for a line starting with
------
Unfortunately if somebody commits a file using a message like:
"added a new feature
--------
removed an old feature"
The second line will be identified as the end of the comment. The same for the
end of a changelog with '======'.
Using the right number of '-' or '=' fixes the problem temporarly until one
commit a file with a number of '-' or '=' greater or equals to the cvs
separator.
PR: 8085
Submitted by: [EMAIL PROTECTED] (Frederic Lavigne)
Revision Changes Path
1.9 +2 -2
jakarta-ant/src/main/org/apache/tools/ant/taskdefs/cvslib/ChangeLogParser.java
Index: ChangeLogParser.java
===================================================================
RCS file:
/home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/cvslib/ChangeLogParser.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- ChangeLogParser.java 14 Apr 2002 11:16:15 -0000 1.8
+++ ChangeLogParser.java 15 Apr 2002 09:07:21 -0000 1.9
@@ -64,7 +64,7 @@
* A class used to parse the output of the CVS log command.
*
* @author <a href="mailto:[EMAIL PROTECTED]">Peter Donald</a>
- * @version $Revision: 1.8 $ $Date: 2002/04/14 11:16:15 $
+ * @version $Revision: 1.9 $ $Date: 2002/04/15 09:07:21 $
*/
class ChangeLogParser {
//private static final int GET_ENTRY = 0;
@@ -159,7 +159,7 @@
saveEntry();
m_status = GET_FILE;
}
- else if (line.startsWith("------")) {
+ else if( line.startsWith( "----------------------------" ) ) {
final int end = m_comment.length() - lineSeparator.length();
//was -1
m_comment = m_comment.substring(0, end);
m_status = GET_PREVIOUS_REV;
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>