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 Thu, 04 Apr 2002 10:45:25 GMT
donaldp     02/04/04 02:45:25

  Modified:    proposal/myrmidon/src/java/org/apache/antlib/cvslib
                        ChangeLogParser.java
  Log:
  Fix up date parsing to pick up time aswell
  
  Revision  Changes    Path
  1.6       +3 -3      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.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- ChangeLogParser.java	4 Apr 2002 10:33:19 -0000	1.5
  +++ ChangeLogParser.java	4 Apr 2002 10:45:25 -0000	1.6
  @@ -21,7 +21,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.5 $ $Date: 2002/04/04 10:33:19 $
  + * @version $Revision: 1.6 $ $Date: 2002/04/04 10:45:25 $
    */
   class ChangeLogParser
       implements ExecOutputHandler
  @@ -37,7 +37,7 @@
       private static final int GET_PREVIOUS_REV = 5;
   
       /** input format for dates read in from cvs log */
  -    private static final SimpleDateFormat c_inputDate = new SimpleDateFormat( "yyyy/MM/dd"
);
  +    private static final SimpleDateFormat c_inputDate = new SimpleDateFormat( "yyyy/MM/dd
hh:mm:ss" );
   
       //The following is data used while processing stdout of CVS command
       private String m_file;
  @@ -189,7 +189,7 @@
       {
           if( line.startsWith( "date:" ) )
           {
  -            m_date = line.substring( 6, 16 );
  +            m_date = line.substring( 6, 25 );
               String lineData = line.substring( line.indexOf( ";" ) + 1 );
               m_author = lineData.substring( 10, lineData.indexOf( ";" ) );
   
  
  
  

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