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/proposal/myrmidon/src/java/org/apache/antlib/cvslib ChangeLogParser.java
Date Mon, 01 Apr 2002 06:29:04 GMT
donaldp     02/03/31 22:29:04

  Modified:    proposal/myrmidon/src/java/org/apache/antlib/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/proposal/myrmidon/src/java/org/apache/antlib/cvslib/ChangeLogParser.java
  
  Index: ChangeLogParser.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/proposal/myrmidon/src/java/org/apache/antlib/cvslib/ChangeLogParser.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- ChangeLogParser.java	30 Mar 2002 03:21:52 -0000	1.2
  +++ ChangeLogParser.java	1 Apr 2002 06:29:04 -0000	1.3
  @@ -20,7 +20,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:21:52 $
  + * @version $Revision: 1.3 $ $Date: 2002/04/01 06:29:04 $
    */
   class ChangeLogParser
       implements ExecOutputHandler
  @@ -96,7 +96,6 @@
                   break;
               case GET_REVISION:
                   processRevision( line );
  -                //Was a fall through ....
                   break;
   
               case GET_DATE:
  @@ -169,6 +168,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