ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject cvs commit: jakarta-ant/src/main/org/apache/tools/ant/taskdefs/cvslib ChangeLogParser.java
Date Fri, 25 Oct 2002 07:49:46 GMT
bodewig     2002/10/25 00:49:46

  Modified:    src/main/org/apache/tools/ant/taskdefs/cvslib
                        ChangeLogParser.java
  Log:
  merge from 1.5 branch
  
  Revision  Changes    Path
  1.17      +17 -1     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.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- ChangeLogParser.java	14 Aug 2002 23:35:05 -0000	1.16
  +++ ChangeLogParser.java	25 Oct 2002 07:49:46 -0000	1.17
  @@ -118,6 +118,9 @@
       public void stdout(final String line) {
           switch(m_status) {
               case GET_FILE:
  +                // make sure attributes are reset when
  +                // working on a 'new' file.
  +                reset();
                   processFile(line);
                   break;
               case GET_REVISION:
  @@ -259,4 +262,17 @@
               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;
  +    }
  +
   }
  
  
  

--
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