Browse Source

Make sure the parser works when there is no changes for an entry.

Reported By: Vincent Massol


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272145 13f79535-47bb-0310-9956-ffa450edef68
master
Peter Donald 23 years ago
parent
commit
a4019bb13b
2 changed files with 12 additions and 2 deletions
  1. +6
    -1
      proposal/myrmidon/src/java/org/apache/antlib/cvslib/ChangeLogParser.java
  2. +6
    -1
      src/main/org/apache/tools/ant/taskdefs/cvslib/ChangeLogParser.java

+ 6
- 1
proposal/myrmidon/src/java/org/apache/antlib/cvslib/ChangeLogParser.java View File

@@ -96,7 +96,6 @@ class ChangeLogParser
break;
case GET_REVISION:
processRevision( line );
//Was a fall through ....
break;

case GET_DATE:
@@ -170,6 +169,12 @@ class ChangeLogParser
m_revision = line.substring( 9 );
m_status = GET_DATE;
}
else if( line.startsWith( "======" ) )
{
//There was no revisions in this changelog
//entry so lets move unto next file
m_status = GET_FILE;
}
}

/**


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

@@ -126,7 +126,6 @@ class ChangeLogParser
break;
case GET_REVISION:
processRevision( line );
//Was a fall through ....
break;

case GET_DATE:
@@ -200,6 +199,12 @@ class ChangeLogParser
m_revision = line.substring( 9 );
m_status = GET_DATE;
}
else if( line.startsWith( "======" ) )
{
//There was no revisions in this changelog
//entry so lets move unto next file
m_status = GET_FILE;
}
}

/**


Loading…
Cancel
Save