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

  Modified:    src/main/org/apache/tools/ant/taskdefs/cvslib
                        ChangeLogParser.java
  Log:
  Fix up date parsing to pick up time aswell
  
  Revision  Changes    Path
  1.7       +3 -3      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.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- ChangeLogParser.java	4 Apr 2002 10:31:56 -0000	1.6
  +++ ChangeLogParser.java	4 Apr 2002 10:45:35 -0000	1.7
  @@ -64,7 +64,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.6 $ $Date: 2002/04/04 10:31:56 $
  + * @version $Revision: 1.7 $ $Date: 2002/04/04 10:45:35 $
    */
   class ChangeLogParser
   {
  @@ -76,7 +76,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;
  @@ -220,7 +220,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