public abstract class AbstractSVNCommandEnvironment extends java.lang.Object implements ISVNCanceller
| Modifier and Type | Field and Description |
|---|---|
private java.util.List |
myArguments |
private SVNClientManager |
myClientManager |
private AbstractSVNCommand |
myCommand |
private java.lang.String |
myCommandName |
private java.io.PrintStream |
myErr |
private java.io.InputStream |
myIn |
private DefaultSVNOptions |
myOptions |
private java.io.PrintStream |
myOut |
private java.lang.String |
myProgramName |
private boolean |
ourIsCancelled |
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.
|
private SVNURL |
checkRootURLOfTarget(SVNURL rootURL,
java.lang.String target) |
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() |
private static boolean |
equals(java.lang.String p1,
java.lang.String p2) |
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) |
private static java.lang.String |
getCommonAncestor(java.lang.String p1,
java.lang.String p2) |
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) |
private static boolean |
isReposRelative(java.lang.String path) |
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) |
private SVNURL |
resolveRepositoryRelativeURL(SVNURL rootURL,
java.lang.String relativeURL) |
boolean |
run() |
protected void |
setArguments(java.util.List newArguments) |
void |
setCancelled() |
private static boolean |
startsWith(java.lang.String p1,
java.lang.String p2) |
protected void |
validateOptions(SVNCommandLine commandLine) |
private boolean ourIsCancelled
private java.io.InputStream myIn
private java.io.PrintStream myErr
private java.io.PrintStream myOut
private SVNClientManager myClientManager
private DefaultSVNOptions myOptions
private java.util.List myArguments
private java.lang.String myProgramName
private AbstractSVNCommand myCommand
private java.lang.String myCommandName
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
SVNExceptionpublic boolean run()
protected void initOptions(SVNCommandLine commandLine) throws SVNException
SVNExceptionprotected abstract void initOption(SVNOptionValue optionValue) throws SVNException
SVNExceptionprotected void validateOptions(SVNCommandLine commandLine) throws SVNException
SVNExceptionprotected void initCommand(SVNCommandLine commandLine) throws SVNException
SVNExceptionprotected java.lang.String getCommandName(SVNCommandLine commandLine) throws SVNException
SVNExceptionprotected abstract java.lang.String refineCommandName(java.lang.String commandName,
SVNCommandLine commandLine)
throws SVNException
SVNExceptionprotected abstract DefaultSVNOptions createClientOptions() throws SVNException
SVNExceptionprotected abstract ISVNAuthenticationManager createClientAuthenticationManager()
protected abstract java.lang.String getCommandLineClientName()
public void initClientManager()
throws SVNException
SVNExceptionpublic void dispose()
public java.util.List<java.lang.String> combineTargets(java.util.Collection targets,
boolean warnReserved)
throws SVNException
SVNExceptionpublic SVNRevision[] parseRevision(java.lang.String revStr)
public byte[] readFromFile(java.io.File file)
throws SVNException
SVNExceptionpublic void handleError(SVNErrorMessage err)
public boolean handleWarning(SVNErrorMessage err, SVNErrorCode[] warningCodes, boolean quiet) throws SVNException
SVNExceptionpublic java.lang.String getRelativePath(java.io.File file)
public SVNURL getURLFromTarget(java.lang.String target) throws SVNException
SVNExceptionpublic boolean isVersioned(java.lang.String target)
throws SVNException
SVNExceptionpublic void printCommitInfo(SVNCommitInfo info)
private SVNURL resolveRepositoryRelativeURL(SVNURL rootURL, java.lang.String relativeURL) throws SVNException
SVNExceptionprivate SVNURL checkRootURLOfTarget(SVNURL rootURL, java.lang.String target) throws SVNException
SVNExceptionprivate static boolean isReposRelative(java.lang.String path)
private static boolean startsWith(java.lang.String p1,
java.lang.String p2)
private static boolean equals(java.lang.String p1,
java.lang.String p2)
private static java.lang.String getCommonAncestor(java.lang.String p1,
java.lang.String p2)
public void checkCancelled()
throws SVNCancelException
ISVNCancellercheckCancelled in interface ISVNCancellerSVNCancelExceptionpublic void setCancelled()
public SVNClientManager createClientManager()