Class SvnStartupUtils
java.lang.Object
net.sf.statsvn.util.SvnStartupUtils
- All Implemented Interfaces:
ISvnVersionProcessor
- Direct Known Subclasses:
SvnKitVersion
Utility class that verifies if the correct version of subversion is used.
- Version:
- $Id: SvnStartupUtils.java 394 2009-08-10 20:08:46Z jkealey $
- Author:
- Jean-Philippe Daigle invalid input: '<'jpdaigle@softwareengineering.ca>
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSvnStartupUtils(ISvnProcessor processor) Invokes various calls needed during StatSVN's startup, including the svn version command line. -
Method Summary
Modifier and TypeMethodDescriptionbooleancheckDiffPerRevPossible(String version) Verifies that the given version supports one diff per revision (version>=1.4.0)Verifies that the current revision of SVN is SVN_MINIMUM_VERSIONprotected ISvnProcessor
-
Field Details
-
SVN_MINIMUM_VERSION
- See Also:
-
SVN_MINIMUM_VERSION_DIFF_PER_REV
- See Also:
-
processor
-
-
Constructor Details
-
SvnStartupUtils
Invokes various calls needed during StatSVN's startup, including the svn version command line.
-
-
Method Details
-
getProcessor
-
checkSvnVersionSufficient
Description copied from interface:ISvnVersionProcessorVerifies that the current revision of SVN is SVN_MINIMUM_VERSION- Specified by:
checkSvnVersionSufficientin interfaceISvnVersionProcessor- Returns:
- the version string
- Throws:
SvnVersionMismatchException- if SVN executable not found or version less than SVN_MINIMUM_VERSION
-
checkDiffPerRevPossible
Description copied from interface:ISvnVersionProcessorVerifies that the given version supports one diff per revision (version>=1.4.0)- Specified by:
checkDiffPerRevPossiblein interfaceISvnVersionProcessor- Parameters:
version- the current version- Returns:
- true if one can do an svn diff per revision
-