public class CVSCommand extends Object
Constructor and Description |
---|
CVSCommand() |
Modifier and Type | Method and Description |
---|---|
boolean |
executeCommand(Command command)
Execute a configured CVS command
|
static void |
main(String[] args)
Execute the CVS command and exit JVM.
|
static boolean |
processCommand(String[] args,
File[] files,
String localPath,
int port,
PrintStream stdout,
PrintStream stderr)
Process the CVS command passed in args[] array with all necessary
options.
|
static boolean |
processCommand(String[] args,
File[] files,
String localPath,
PrintStream stdout,
PrintStream stderr)
Process the CVS command passed in args[] array with all necessary
options.
|
void |
setGlobalOptions(GlobalOptions globalOptions) |
void |
setLocalPath(String localPath) |
void |
setRepository(String repository) |
public boolean executeCommand(Command command) throws CommandException, AuthenticationException
command
- the command to executeCommandException
- if there is an error running the commandAuthenticationException
public void setRepository(String repository)
public void setLocalPath(String localPath)
public void setGlobalOptions(GlobalOptions globalOptions)
public static void main(String[] args)
public static boolean processCommand(String[] args, File[] files, String localPath, PrintStream stdout, 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(String[] args, File[] files, String localPath, int port, PrintStream stdout, 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.Copyright © 2016. All rights reserved.