public class SvnStartupUtils extends java.lang.Object implements ISvnVersionProcessor
| Modifier and Type | Field and Description |
|---|---|
protected ISvnProcessor |
processor |
static java.lang.String |
SVN_MINIMUM_VERSION |
static java.lang.String |
SVN_MINIMUM_VERSION_DIFF_PER_REV |
| Constructor and Description |
|---|
SvnStartupUtils(ISvnProcessor processor)
Invokes various calls needed during StatSVN's startup, including the svn version command line.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkDiffPerRevPossible(java.lang.String version)
Verifies that the given version supports one diff per revision (version>=1.4.0)
|
java.lang.String |
checkSvnVersionSufficient()
Verifies that the current revision of SVN is SVN_MINIMUM_VERSION
|
protected ISvnProcessor |
getProcessor() |
public static final java.lang.String SVN_MINIMUM_VERSION
public static final java.lang.String SVN_MINIMUM_VERSION_DIFF_PER_REV
protected ISvnProcessor processor
public SvnStartupUtils(ISvnProcessor processor)
protected ISvnProcessor getProcessor()
public java.lang.String checkSvnVersionSufficient()
throws SvnVersionMismatchException
ISvnVersionProcessorcheckSvnVersionSufficient in interface ISvnVersionProcessorSvnVersionMismatchException - if SVN executable not found or version less than
SVN_MINIMUM_VERSIONpublic boolean checkDiffPerRevPossible(java.lang.String version)
ISvnVersionProcessorcheckDiffPerRevPossible in interface ISvnVersionProcessorversion - the current version