public abstract class AbstractSVNCommandEnvironment extends java.lang.Object implements ISVNCanceller
NULL
Modifier | Constructor and Description |
---|---|
protected |
AbstractSVNCommandEnvironment(java.lang.String programName,
java.io.PrintStream out,
java.io.PrintStream err,
java.io.InputStream in) |
Modifier and Type | Method and Description |
---|---|
void |
checkCancelled()
Checks if the current operation is cancelled (somehow interrupted)
and should throw an SVNCancelException or notify the handler if exists.
|
java.util.List<java.lang.String> |
combineTargets(java.util.Collection targets,
boolean warnReserved) |
protected abstract ISVNAuthenticationManager |
createClientAuthenticationManager() |
SVNClientManager |
createClientManager() |
protected abstract DefaultSVNOptions |
createClientOptions() |
void |
dispose() |
java.util.List |
getArguments() |
SVNClientManager |
getClientManager() |
AbstractSVNCommand |
getCommand() |
protected abstract java.lang.String |
getCommandLineClientName() |
java.lang.String |
getCommandName() |
protected java.lang.String |
getCommandName(SVNCommandLine commandLine) |
java.io.PrintStream |
getErr() |
java.io.InputStream |
getIn() |
DefaultSVNOptions |
getOptions() |
java.io.PrintStream |
getOut() |
java.lang.String |
getProgramName() |
java.lang.String |
getRelativePath(java.io.File file) |
SVNURL |
getURLFromTarget(java.lang.String target) |
void |
handleError(SVNErrorMessage err) |
boolean |
handleWarning(SVNErrorMessage err,
SVNErrorCode[] warningCodes,
boolean quiet) |
void |
init(SVNCommandLine commandLine) |
void |
initClientManager() |
protected void |
initCommand(SVNCommandLine commandLine) |
protected abstract void |
initOption(SVNOptionValue optionValue) |
protected void |
initOptions(SVNCommandLine commandLine) |
boolean |
isVersioned(java.lang.String target) |
SVNRevision[] |
parseRevision(java.lang.String revStr) |
java.lang.String |
popArgument() |
void |
printCommitInfo(SVNCommitInfo info) |
byte[] |
readFromFile(java.io.File file) |
protected abstract java.lang.String |
refineCommandName(java.lang.String commandName,
SVNCommandLine commandLine) |
boolean |
run() |
protected void |
setArguments(java.util.List newArguments) |
void |
setCancelled() |
protected void |
validateOptions(SVNCommandLine commandLine) |
protected AbstractSVNCommandEnvironment(java.lang.String programName, java.io.PrintStream out, java.io.PrintStream err, java.io.InputStream in)
public java.lang.String getProgramName()
public java.io.PrintStream getOut()
public java.io.PrintStream getErr()
public java.io.InputStream getIn()
public SVNClientManager getClientManager()
public DefaultSVNOptions getOptions()
public java.util.List getArguments()
public AbstractSVNCommand getCommand()
public java.lang.String getCommandName()
public java.lang.String popArgument()
protected void setArguments(java.util.List newArguments)
public void init(SVNCommandLine commandLine) throws SVNException
SVNException
public boolean run()
protected void initOptions(SVNCommandLine commandLine) throws SVNException
SVNException
protected abstract void initOption(SVNOptionValue optionValue) throws SVNException
SVNException
protected void validateOptions(SVNCommandLine commandLine) throws SVNException
SVNException
protected void initCommand(SVNCommandLine commandLine) throws SVNException
SVNException
protected java.lang.String getCommandName(SVNCommandLine commandLine) throws SVNException
SVNException
protected abstract java.lang.String refineCommandName(java.lang.String commandName, SVNCommandLine commandLine) throws SVNException
SVNException
protected abstract DefaultSVNOptions createClientOptions() throws SVNException
SVNException
protected abstract ISVNAuthenticationManager createClientAuthenticationManager()
protected abstract java.lang.String getCommandLineClientName()
public void initClientManager() throws SVNException
SVNException
public void dispose()
public java.util.List<java.lang.String> combineTargets(java.util.Collection targets, boolean warnReserved) throws SVNException
SVNException
public SVNRevision[] parseRevision(java.lang.String revStr)
public byte[] readFromFile(java.io.File file) throws SVNException
SVNException
public void handleError(SVNErrorMessage err)
public boolean handleWarning(SVNErrorMessage err, SVNErrorCode[] warningCodes, boolean quiet) throws SVNException
SVNException
public java.lang.String getRelativePath(java.io.File file)
public SVNURL getURLFromTarget(java.lang.String target) throws SVNException
SVNException
public boolean isVersioned(java.lang.String target) throws SVNException
SVNException
public void printCommitInfo(SVNCommitInfo info)
public void checkCancelled() throws SVNCancelException
ISVNCanceller
checkCancelled
in interface ISVNCanceller
SVNCancelException
public void setCancelled()
public SVNClientManager createClientManager()
Copyright © 2020. All rights reserved.