Class HgConfig
java.lang.Object
org.apache.maven.scm.provider.hg.HgConfig
Check hg installation.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static classGet version of the executable. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Stringprivate static final Stringprivate static final Stringprivate HgConfig.HgVersionConsumer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static booleancompareVersion(String version1, String version2) Iterate through two dot-notation version strings, normalize them to the same length, then do alphabetic comparison.static HgConfig.HgVersionConsumergetHgVersion(File workingDir) private Stringprivate booleanprivate 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
-
getInstalledStr
-
toString
-