ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sbaill...@apache.org
Subject cvs commit: jakarta-ant/src/main/org/apache/tools/ant/taskdefs/cvslib ChangeLogParser.java
Date Thu, 24 Oct 2002 23:27:29 GMT
sbailliez    2002/10/24 16:27:29

  Modified:    src/main/org/apache/tools/ant/taskdefs/cvslib Tag:
                        ANT_15_BRANCH ChangeLogParser.java
  Log:
  Reset internal attributes when looking for a new file to avoid states conflicts
  PR:11583
  Reported by: : m.mehrmann@fernuni-hagen.de (Mathias Mehrmann)
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.14.2.2  +18 -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.14.2.1
  retrieving revision 1.14.2.2
  diff -u -r1.14.2.1 -r1.14.2.2
  --- ChangeLogParser.java	28 Aug 2002 13:08:00 -0000	1.14.2.1
  +++ ChangeLogParser.java	24 Oct 2002 23:27:29 -0000	1.14.2.2
  @@ -110,7 +110,7 @@
           }
           return array;
       }
  -
  +   
       /**
        * Receive notification about the process writing
        * to standard output.
  @@ -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