net.sf.statsvn.util
public class SvnStartupUtils extends Object implements ISvnVersionProcessor
Modifier and Type | Field and Description |
---|---|
protected ISvnProcessor |
processor |
static String |
SVN_MINIMUM_VERSION |
static 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(String version)
Verifies that the given version supports one diff per revision (version>=1.4.0)
|
String |
checkSvnVersionSufficient()
Verifies that the current revision of SVN is SVN_MINIMUM_VERSION
|
protected ISvnProcessor |
getProcessor() |
public static final String SVN_MINIMUM_VERSION
public static final String SVN_MINIMUM_VERSION_DIFF_PER_REV
protected ISvnProcessor processor
public SvnStartupUtils(ISvnProcessor processor)
protected ISvnProcessor getProcessor()
public String checkSvnVersionSufficient() throws SvnVersionMismatchException
ISvnVersionProcessor
checkSvnVersionSufficient
in interface ISvnVersionProcessor
SvnVersionMismatchException
- if SVN executable not found or version less than
SVN_MINIMUM_VERSIONpublic boolean checkDiffPerRevPossible(String version)
ISvnVersionProcessor
checkDiffPerRevPossible
in interface ISvnVersionProcessor
version
- the current version