Browse Source

no message

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

+ 69
- 0
proposal/myrmidon/src/java/org/apache/antlib/cvslib/CVSEntry.java View File

@@ -0,0 +1,69 @@
/*
* 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;

import java.util.ArrayList;
import java.util.Date;
import java.util.Vector;

/**
* CVS Entry.
*
* @author <a href="mailto:jeff.martin@synamic.co.uk">Jeff Martin</a>
* @author <a href="mailto:peter@apache.org">Peter Donald</a>
* @version $Revision$ $Date$
*/
class CVSEntry
{
private Date m_date;
private final String m_author;
private final String m_comment;
private final ArrayList m_files = new ArrayList();

public CVSEntry( Date date, String author, String comment )
{
m_date = date;
m_author = author;
m_comment = comment;
}

public void addFile( String file, String revision )
{
m_files.add( new RCSFile( file, revision ) );
}

public void addFile( String file, String revision, String previousRevision )
{
m_files.add( new RCSFile( file, revision, previousRevision ) );
}

Date getDate()
{
return m_date;
}

String getAuthor()
{
return m_author;
}

String getComment()
{
return m_comment;
}

ArrayList getFiles()
{
return m_files;
}

public String toString()
{
return getAuthor() + "\n" + getDate() + "\n" + getFiles() + "\n" + getComment();
}
}

Loading…
Cancel
Save