net.sf.ant4eclipse.ant.util
Class CvsAdapter

java.lang.Object
  extended by net.sf.ant4eclipse.ant.util.CvsAdapter

public class CvsAdapter
extends java.lang.Object

Implements an adapter for accessing cvs.


Constructor Summary
CvsAdapter(Project antProject, boolean quiet, boolean reallyquiet)
           Initializes this CVS adapter.
 
Method Summary
 void checkoutProject(Workspace workspace, TeamProjectDescription projectDescription, boolean deleteExisting)
           Runs a CVS checkout operation on a given project.
 void exportProject(Workspace workspace, TeamProjectDescription projectDescription, boolean deleteExisting)
           Runs a CVS export operation on a given project.
 void updateProject(Workspace workspace, TeamProjectDescription projectDescription)
           Runs a CVS update operation on a given project.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CvsAdapter

public CvsAdapter(Project antProject,
                  boolean quiet,
                  boolean reallyquiet)

Initializes this CVS adapter.

Parameters:
antProject - the ant project in which the cvs tasks will be executed.
quiet - indicates if the cvs commands should be executed quiet.
reallyquiet - indicates if the cvs commands should be executed really quiet.
Method Detail

checkoutProject

public void checkoutProject(Workspace workspace,
                            TeamProjectDescription projectDescription,
                            boolean deleteExisting)
                     throws CvsException

Runs a CVS checkout operation on a given project.

Parameters:
workspace - the current workspace in which the project will be checked out.
projectDescription - the description of the shared project.
deleteExisting - indicates if existing projects should be deleted.
Throws:
CvsException - The CVS operation failed for some reason.

updateProject

public void updateProject(Workspace workspace,
                          TeamProjectDescription projectDescription)
                   throws CvsException

Runs a CVS update operation on a given project.

Parameters:
workspace - the current workspace in which the project will be updated.
projectDescription - the description of the shared project.
Throws:
CvsException - The CVS operation failed for some reason.

exportProject

public void exportProject(Workspace workspace,
                          TeamProjectDescription projectDescription,
                          boolean deleteExisting)
                   throws CvsException

Runs a CVS export operation on a given project.

Parameters:
workspace - the current workspace in which the project will be exported.
projectDescription - the description of the shared project.
deleteExisting - indicates if existing projects should be deleted.
Throws:
CvsException