ca.utoronto.JCVSReport
Class JCVSProject

java.lang.Object
  extended byca.utoronto.JCVSReport.JCVSProject

public class JCVSProject
extends Object

Represents a project with an associated database and CVS repository. Enables user to import, update and close the project, as well as to produce a report.

Author:
Polina Gohshtein

Constructor Summary
JCVSProject(CvsAccess aCvsAccess, DbAccess aDbAccess, String[] aGraphs)
          Creates JCVSReport given database access and SCM access information.
 
Method Summary
 void closeProject()
          Close the database.
 Report getReport()
          Access the internal report object
 void importProject()
          Imports a new project by creating a new database for it, and importing the CVS data for the whole lifetime of the project.
 void produceReport(String file, String directory)
          Produces an HTML report with the specified file name and in the specified directory.
 void updateProject()
          Updates the project since last time it has been updated.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JCVSProject

public JCVSProject(CvsAccess aCvsAccess,
                   DbAccess aDbAccess,
                   String[] aGraphs)
Creates JCVSReport given database access and SCM access information.

Parameters:
aCvsAccess - CVS access information
aDbAccess - Database access information
aGraphs - The graphs to be generated
Method Detail

importProject

public void importProject()
                   throws Exception
Imports a new project by creating a new database for it, and importing the CVS data for the whole lifetime of the project.

Throws:
Exception

updateProject

public void updateProject()
                   throws Exception
Updates the project since last time it has been updated.

Throws:
Exception

produceReport

public void produceReport(String file,
                          String directory)
                   throws Exception
Produces an HTML report with the specified file name and in the specified directory.

Parameters:
file - The file name
directory - The directory
Throws:
Exception

closeProject

public void closeProject()
                  throws IOException,
                         SQLException
Close the database.

Throws:
SQLException - if the database could not be found or started
IOException - if the database could not be found or started

getReport

public Report getReport()
Access the internal report object



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