Class CvsConnection
- java.lang.Object
-
- org.apache.maven.scm.provider.cvslib.cvsjava.util.CvsConnection
-
public class CvsConnection extends java.lang.Object
A Cvs connection that simulates a command line interface.- Author:
- Eric Pugh
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
executeCommand(org.netbeans.lib.cvsclient.command.Command command)
Execute a configured CVS commandstatic boolean
processCommand(java.lang.String[] args, java.lang.String localPath, org.netbeans.lib.cvsclient.event.CVSListener listener, ScmLogger logger)
Process the CVS command passed in args[] array with all necessary options.void
setGlobalOptions(org.netbeans.lib.cvsclient.command.GlobalOptions globalOptions)
void
setLocalPath(java.lang.String localPath)
void
setRepository(java.lang.String repository)
-
-
-
Method Detail
-
executeCommand
public boolean executeCommand(org.netbeans.lib.cvsclient.command.Command command) throws org.netbeans.lib.cvsclient.command.CommandException, org.netbeans.lib.cvsclient.connection.AuthenticationException
Execute a configured CVS command- Parameters:
command
- the command to execute- Throws:
org.netbeans.lib.cvsclient.command.CommandException
- if there is an error running the commandorg.netbeans.lib.cvsclient.connection.AuthenticationException
-
setRepository
public void setRepository(java.lang.String repository)
-
setLocalPath
public void setLocalPath(java.lang.String localPath)
-
setGlobalOptions
public void setGlobalOptions(org.netbeans.lib.cvsclient.command.GlobalOptions globalOptions)
-
processCommand
public static boolean processCommand(java.lang.String[] args, java.lang.String localPath, org.netbeans.lib.cvsclient.event.CVSListener listener, ScmLogger logger) throws java.lang.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:
java.lang.Exception
-
-