org.apache.maven.scm.provider.cvslib.cvsjava.util
Class CvsConnection

java.lang.Object
  extended by org.apache.maven.scm.provider.cvslib.cvsjava.util.CvsConnection

public class CvsConnection
extends Object

A Cvs connection that simulates a command line interface.

Author:
Eric Pugh

Method Summary
 boolean executeCommand(Command command)
          Execute a configured CVS command
static boolean processCommand(String[] args, String localPath, CVSListener listener, ScmLogger logger)
          Process the CVS command passed in args[] array with all necessary options.
 void setGlobalOptions(GlobalOptions globalOptions)
           
 void setLocalPath(String localPath)
           
 void setRepository(String repository)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

executeCommand

public boolean executeCommand(Command command)
                       throws CommandException,
                              AuthenticationException
Execute a configured CVS command

Parameters:
command - the command to execute
Throws:
CommandException - if there is an error running the command
AuthenticationException

setRepository

public void setRepository(String repository)

setLocalPath

public void setLocalPath(String localPath)

setGlobalOptions

public void setGlobalOptions(GlobalOptions globalOptions)

processCommand

public static boolean processCommand(String[] args,
                                     String localPath,
                                     CVSListener listener,
                                     ScmLogger logger)
                              throws Exception
Process the CVS command passed in args[] array with all necessary options. The only difference from main() method is, that this method does not exit the JVM and provides command output.

Parameters:
args - The command with options
Throws:
Exception


Copyright © 2003-2008 Apache Software Foundation. All Rights Reserved.