ca.utoronto.JCVSReport.cvsPlugin
Class Cvs

java.lang.Object
  extended byca.utoronto.JCVSReport.cvsPlugin.Cvs

public class Cvs
extends Object

Cvs class acts as an interface to the CVS. It contains operations to retrieve files from CVS and CVS metadata.

Author:
Polina Gohshtein

Constructor Summary
Cvs(CvsAccess accessInformation)
          Creates a Cvs object with the given CVS access information.
 
Method Summary
 String getCvsFile(String file, String version)
          Get a specific version of a specific file from a CVS repository
 Iterator getCvsHistoryData()
          Get project data from the CVS history for the whole lifetime of the project.
 Iterator getCvsHistoryData(Date aFromDate)
          Get project data from the CVS history from the specified date.
 ScmRevisionIterator getCvsLogData()
          Get project data from the CVS log for the whole lifetime of the project.
 ScmRevisionIterator getCvsLogData(Date aFromDate)
          Get project data from the CVS log from the specified date.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Cvs

public Cvs(CvsAccess accessInformation)
Creates a Cvs object with the given CVS access information.

Parameters:
accessInformation - CVS access information
Method Detail

getCvsFile

public String getCvsFile(String file,
                         String version)
                  throws IOException,
                         InterruptedException
Get a specific version of a specific file from a CVS repository

Parameters:
file - The file we want to get
version - The version of the file we want to get
Throws:
IOException
InterruptedException

getCvsLogData

public ScmRevisionIterator getCvsLogData()
                                  throws IOException,
                                         InterruptedException,
                                         ScmAccessException,
                                         SQLException
Get project data from the CVS log for the whole lifetime of the project.

Returns:
RevisionIterator object - an iterator over Cvs revisions
Throws:
IOException
InterruptedException
ScmAccessException
SQLException

getCvsLogData

public ScmRevisionIterator getCvsLogData(Date aFromDate)
                                  throws IOException,
                                         InterruptedException,
                                         ScmAccessException,
                                         SQLException
Get project data from the CVS log from the specified date.

Parameters:
aFromDate - The start date
Returns:
RevisionIterator object - an iterator over Cvs revisions
Throws:
IOException
InterruptedException
ScmAccessException
SQLException

getCvsHistoryData

public Iterator getCvsHistoryData()
                           throws IOException,
                                  InterruptedException,
                                  ScmAccessException,
                                  SQLException
Get project data from the CVS history for the whole lifetime of the project.

Returns:
Iterator over the history records
Throws:
IOException
InterruptedException
ScmAccessException
SQLException

getCvsHistoryData

public Iterator getCvsHistoryData(Date aFromDate)
                           throws IOException,
                                  InterruptedException,
                                  ScmAccessException,
                                  SQLException
Get project data from the CVS history from the specified date.

Parameters:
aFromDate - The start date
Returns:
Iterator over the history records
Throws:
IOException
InterruptedException
ScmAccessException
SQLException


JCVSReport: Easy Progress Reports for CVS/Java Projects. By David James.