public class VersionUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
MIN_MULE4_VALID_VERSION |
| Constructor and Description |
|---|
VersionUtils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
completeIncremental(String version)
It completes the incremental version number with 0 in the event the version provided has the form x to become x.0.0 or x.y to
become x.y.0
|
static String |
getBaseVersion(String version)
Returns the base version, i.e., in the format major.minor.patch.
|
static Boolean |
isVersionGreaterOrEquals(String version1,
String version2)
Validates if
version1 is greater or equal than version2 |
static Boolean |
isVersionValid(String version,
String complyVersion)
Validates if a mule 3 version complies with semantic versioning specification
|
public static final String MIN_MULE4_VALID_VERSION
public static Boolean isVersionValid(String version, String complyVersion) throws Exception
version - the version to validateExceptionpublic static Boolean isVersionGreaterOrEquals(String version1, String version2)
version1 is greater or equal than version2version1 - version2 - public static String completeIncremental(String version)
version - the version to be completedCopyright © 2018 MuleSoft Inc. All rights reserved.