Browse Source

merge from 1.5 branch

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273469 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 22 years ago
parent
commit
92d691ddda
1 changed files with 16 additions and 0 deletions
  1. +16
    -0
      src/main/org/apache/tools/ant/taskdefs/cvslib/ChangeLogParser.java

+ 16
- 0
src/main/org/apache/tools/ant/taskdefs/cvslib/ChangeLogParser.java View File

@@ -118,6 +118,9 @@ class ChangeLogParser {
public void stdout(final String line) { public void stdout(final String line) {
switch(m_status) { switch(m_status) {
case GET_FILE: case GET_FILE:
// make sure attributes are reset when
// working on a 'new' file.
reset();
processFile(line); processFile(line);
break; break;
case GET_REVISION: case GET_REVISION:
@@ -259,4 +262,17 @@ class ChangeLogParser {
return null; return null;
} }
} }
/**
* reset all internal attributes except status.
*/
private void reset(){
m_file = null;
m_date = null;
m_author = null;
m_comment = null;
m_revision = null;
m_previousRevision = null;
}

} }

Loading…
Cancel
Save