org.figure8.join.services.vcs
Class CVSAccessor

java.lang.Object
  extended by org.figure8.join.services.vcs.AbstractVCSAccessor
      extended by org.figure8.join.services.vcs.CVSAccessor
All Implemented Interfaces:
java.io.Serializable, VCSAccessor

public class CVSAccessor
extends AbstractVCSAccessor

Implementation of VCSAccessor for CVS system. This implementation uses the cvs.exe client configured on the execution machine. This later should be in the PATH environment variable (or equivalent).

Version:
$Revision: 1.3 $
Author:
Laurent Broudoux
See Also:
Serialized Form

Field Summary
static java.lang.String CHECKOUT_COMMAND
          Constant for the CVS checkout command
static java.lang.String PSERVER_PROTOCOL
          Constant for the CVS pserver protocol
 
Fields inherited from class org.figure8.join.services.vcs.AbstractVCSAccessor
module, password, protocol, rootRepository, user
 
Constructor Summary
CVSAccessor()
          Creates a new instance of CVSAccessor
 
Method Summary
 void checkout(java.lang.String tag, java.lang.String destDirectory)
          Perform a checkout command (or equivalent) on the VCS using a specified baseline tag.
 void login()
          Login onto configuration management system.
 void logout()
          Logout from configuration management system.
 
Methods inherited from class org.figure8.join.services.vcs.AbstractVCSAccessor
getExecuteStreamHandler, getModule, getPassword, getProtocol, getRootRepository, getUser, setModule, setPassword, setProtocol, setRootRepository, setUser
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PSERVER_PROTOCOL

public static final java.lang.String PSERVER_PROTOCOL
Constant for the CVS pserver protocol

See Also:
Constant Field Values

CHECKOUT_COMMAND

public static final java.lang.String CHECKOUT_COMMAND
Constant for the CVS checkout command

See Also:
Constant Field Values
Constructor Detail

CVSAccessor

public CVSAccessor()
Creates a new instance of CVSAccessor

Method Detail

login

public void login()
           throws VCSAccessException
Login onto configuration management system.

Throws:
VCSAccessException - if login is not successfull

checkout

public void checkout(java.lang.String tag,
                     java.lang.String destDirectory)
              throws VCSAccessException
Perform a checkout command (or equivalent) on the VCS using a specified baseline tag. Extracted files are stored within destDirectory

Parameters:
tag - Baseline tag for retrieving module from VCS
destDirectory - Path of the destination directory where to put extracted files
Throws:
VCSAccessException - if cehckout command is not successfull

logout

public void logout()
            throws VCSAccessException
Logout from configuration management system.

Throws:
VCSAccessException - if logout is not successfull


Copyright © 2005-2008 Join. All Rights Reserved.