You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by sb...@apache.org on 2002/08/15 01:35:05 UTC
cvs commit: jakarta-ant/src/main/org/apache/tools/ant/taskdefs/cvslib ChangeLogParser.java
sbailliez 2002/08/14 16:35:05
Modified: src/main/org/apache/tools/ant/taskdefs/cvslib
ChangeLogParser.java
Log:
Ooops. Bad IDEA configuration ruined the imports.
Revision Changes Path
1.16 +9 -6 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.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- ChangeLogParser.java 14 Aug 2002 23:13:05 -0000 1.15
+++ ChangeLogParser.java 14 Aug 2002 23:35:05 -0000 1.16
@@ -55,7 +55,10 @@
import java.text.ParseException;
import java.text.SimpleDateFormat;
-import java.util.*;
+import java.util.Date;
+import java.util.Enumeration;
+import java.util.Hashtable;
+import java.util.TimeZone;
/**
* A class used to parse the output of the CVS log command.
@@ -72,7 +75,7 @@
private static final int GET_PREVIOUS_REV = 5;
/** input format for dates read in from cvs log */
- private static final SimpleDateFormat c_inputDate
+ private static final SimpleDateFormat c_inputDate
= new SimpleDateFormat("yyyy/MM/dd HH:mm:ss");
static {
@@ -145,13 +148,13 @@
if (line.startsWith("======")) {
//We have ended changelog for that particular file
//so we can save it
- final int end
+ final int end
= m_comment.length() - lineSeparator.length(); //was -1
m_comment = m_comment.substring(0, end);
saveEntry();
m_status = GET_FILE;
} else if (line.startsWith("----------------------------")) {
- final int end
+ final int end
= m_comment.length() - lineSeparator.length(); //was -1
m_comment = m_comment.substring(0, end);
m_status = GET_PREVIOUS_REV;
@@ -214,7 +217,7 @@
*/
private void processGetPreviousRevision(final String line) {
if (!line.startsWith("revision")) {
- throw new IllegalStateException("Unexpected line from CVS: "
+ throw new IllegalStateException("Unexpected line from CVS: "
+ line);
}
m_previousRevision = line.substring(9);
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>