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 RCSFile.java
Date Sun, 24 Mar 2002 00:05:50 GMT
donaldp     02/03/23 16:05:50

  Added:       proposal/myrmidon/src/java/org/apache/antlib/cvslib
                        RCSFile.java
  Log:
  Start to integraqte Alexandrias ChangeLog task into myrmidon
  
  Revision  Changes    Path
  1.1                  jakarta-ant/proposal/myrmidon/src/java/org/apache/antlib/cvslib/RCSFile.java
  
  Index: RCSFile.java
  ===================================================================
  /*
   * Copyright (C) The Apache Software Foundation. All rights reserved.
   *
   * This software is published under the terms of the Apache Software License
   * version 1.1, a copy of which has been included  with this distribution in
   * the LICENSE.txt file.
   */
  package org.apache.antlib.cvslib;
  
  /**
   * Represents a RCS File cheange.
   *
   * @author <a href="mailto:peter@apache.org">Peter Donald</a>
   * @author <a href="mailto:jeff.martin@synamic.co.uk">Jeff Martin</a>
   * @version $Revision: 1.1 $ $Date: 2002/03/24 00:05:49 $
   */
  class RCSFile
  {
      private final String m_name;
      private final String m_revision;
      private String m_previousRevision;
  
      RCSFile( final String name, final String rev )
      {
          this( name, rev, null );
      }
  
      RCSFile( final String name,
                       final String revision,
                       final String previousRevision )
      {
          m_name = name;
          m_revision = revision;
          if( !revision.equals( previousRevision ) )
          {
              m_previousRevision = previousRevision;
          }
      }
  
      String getName()
      {
          return m_name;
      }
  
      String getRevision()
      {
          return m_revision;
      }
  
      String getPreviousRevision()
      {
          return m_previousRevision;
      }
  }
  
  
  

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