Browse Source

Start to integraqte Alexandrias ChangeLog task into myrmidon

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271998 13f79535-47bb-0310-9956-ffa450edef68
master
Peter Donald 24 years ago
parent
commit
2e52ff7fe8
1 changed files with 54 additions and 0 deletions
  1. +54
    -0
      proposal/myrmidon/src/java/org/apache/antlib/cvslib/RCSFile.java

+ 54
- 0
proposal/myrmidon/src/java/org/apache/antlib/cvslib/RCSFile.java View File

@@ -0,0 +1,54 @@
/*
* 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$ $Date$
*/
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;
}
}

Loading…
Cancel
Save