ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject cvs commit: jakarta-ant/src/main/org/apache/tools/ant/taskdefs/cvslib ChangeLogParser.java
Date Mon, 01 Apr 2002 06:28:56 GMT
donaldp     02/03/31 22:28:56

  Modified:    src/main/org/apache/tools/ant/taskdefs/cvslib
                        ChangeLogParser.java
  Log:
  Make sure the parser works when there is no changes for an entry.
  
  Reported By: Vincent Massol
  
  Revision  Changes    Path
  1.3       +7 -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.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- ChangeLogParser.java	30 Mar 2002 03:10:20 -0000	1.2
  +++ ChangeLogParser.java	1 Apr 2002 06:28:56 -0000	1.3
  @@ -63,7 +63,7 @@
    * A class used to parse the output of the CVS log command.
    *
    * @author <a href="mailto:peter@apache.org">Peter Donald</a>
  - * @version $Revision: 1.2 $ $Date: 2002/03/30 03:10:20 $
  + * @version $Revision: 1.3 $ $Date: 2002/04/01 06:28:56 $
    */
   class ChangeLogParser
   {
  @@ -126,7 +126,6 @@
                   break;
               case GET_REVISION:
                   processRevision( line );
  -                //Was a fall through ....
                   break;
   
               case GET_DATE:
  @@ -199,6 +198,12 @@
           {
               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;
           }
       }
   
  
  
  

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message