|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.maven.rtinfo.internal.DefaultRuntimeInformation
@Component(role=RuntimeInformation.class) public class DefaultRuntimeInformation
Provides information about the current Maven runtime.
Constructor Summary | |
---|---|
DefaultRuntimeInformation()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultRuntimeInformation()
Method Detail |
---|
public java.lang.String getMavenVersion()
RuntimeInformation
getMavenVersion
in interface RuntimeInformation
null
.public boolean isMavenVersion(java.lang.String versionRange)
RuntimeInformation
isMavenVersion
in interface RuntimeInformation
versionRange
- 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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |