public class CVSCommand
extends java.lang.Object
Constructor and Description |
---|
CVSCommand() |
Modifier and Type | Method and Description |
---|---|
boolean |
executeCommand(Command command,
java.io.PrintStream stderr)
Execute a configured CVS command
|
static void |
main(java.lang.String[] args)
Execute the CVS command and exit JVM.
|
static boolean |
processCommand(java.lang.String[] args,
java.io.File[] files,
java.lang.String localPath,
int port,
java.io.PrintStream stdout,
java.io.PrintStream stderr)
Process the CVS command passed in args[] array with all necessary options.
|
static boolean |
processCommand(java.lang.String[] args,
java.io.File[] files,
java.lang.String localPath,
java.io.PrintStream stdout,
java.io.PrintStream stderr)
Process the CVS command passed in args[] array with all necessary options.
|
void |
setGlobalOptions(GlobalOptions globalOptions) |
void |
setLocalPath(java.lang.String localPath) |
void |
setRepository(java.lang.String repository) |
public boolean executeCommand(Command command, java.io.PrintStream stderr) throws CommandException, AuthenticationException
command
- the command to executeCommandException
- if there is an error running the commandAuthenticationException
public void setRepository(java.lang.String repository)
public void setLocalPath(java.lang.String localPath)
public void setGlobalOptions(GlobalOptions globalOptions)
public static void main(java.lang.String[] args)
public static boolean processCommand(java.lang.String[] args, java.io.File[] files, java.lang.String localPath, java.io.PrintStream stdout, java.io.PrintStream stderr)
args
- The command with optionsfiles
- The files to execute the command on.localPath
- The local working directorystdout
- The standard output of the commandstderr
- The error output of the command.public static boolean processCommand(java.lang.String[] args, java.io.File[] files, java.lang.String localPath, int port, java.io.PrintStream stdout, java.io.PrintStream stderr)
args
- The command with optionsfiles
- The files to execute the command on.localPath
- The local working directoryport
- The port number that is used to connect to the remote server.
It is taken into account only when it's value is greater then zero.stdout
- The standard output of the commandstderr
- The error output of the command.Built on January 12 2013. | Portions Copyright 1997-2005 Sun Microsystems, Inc. All rights reserved.