RuntimeInformation@Component(role=RuntimeInformation.class) public class DefaultRuntimeInformation extends java.lang.Object implements RuntimeInformation
| Constructor | Description |
|---|---|
DefaultRuntimeInformation() |
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.String |
getMavenVersion() |
Retrieves the current Maven version, for example "3.0.2".
|
boolean |
isMavenVersion(java.lang.String versionRange) |
Checks whether the current Maven runtime matches the specified version range.
|
public java.lang.String getMavenVersion()
RuntimeInformationgetMavenVersion in interface RuntimeInformationnull.public boolean isMavenVersion(java.lang.String versionRange)
RuntimeInformationisMavenVersion in interface RuntimeInformationversionRange - The version range to match the current Maven runtime against, must not be null.true if the current Maven runtime matches the specified version range, false otherwise.