Package org.apache.maven.scm.provider.hg
Class HgConfig
java.lang.Object
org.apache.maven.scm.provider.hg.HgConfig
Check hg installation.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static class
Get version of the executable. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final String
private static final String
private static final String
private HgConfig.HgVersionConsumer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static boolean
compareVersion
(String version1, String version2) Iterate through two dot-notation version strings, normalize them to the same length, then do alphabetic comparisonstatic HgConfig.HgVersionConsumer
getHgVersion
(File workingDir) private String
private boolean
private boolean
-
Field Details
-
HG_REQ
- See Also:
-
HG_VERSION_TAG
- See Also:
-
HG_INSTALL_URL
- See Also:
-
hgVersion
-
-
Constructor Details
-
HgConfig
HgConfig(File workingDir)
-
-
Method Details
-
isInstalled
private boolean isInstalled()- Returns:
- True if one can run basic hg commands
-
isComplete
private boolean isComplete()- Returns:
- True if all modules for hg are installed.
-
getHgVersion
- Throws:
ScmException
-
compareVersion
Iterate through two dot-notation version strings, normalize them to the same length, then do alphabetic comparison- Parameters:
version1
-version2
-- Returns:
- true if version2 is greater than version1
-
getInstalledStr
-
toString
-