public class RequireJavaVersion extends AbstractVersionEnforcer
Constructor and Description |
---|
RequireJavaVersion() |
Modifier and Type | Method and Description |
---|---|
void |
execute(EnforcerRuleHelper helper)
This is the interface into the rule.
|
static String |
normalizeJDKVersion(String theJdkVersion)
Converts a jdk string from 1.5.0-11b12 to a single 3 digit version like 1.5.0-11
|
containsVersion, enforceVersion, getCacheId, getVersion, isCacheable, isResultValid, setVersion
getLevel, getMessage, setLevel, setMessage
public RequireJavaVersion()
public void execute(EnforcerRuleHelper helper) throws EnforcerRuleException
EnforcerRule
helper
- The helper provides access to the log, MavenSession and has
helpers to get common components. It is also able to lookup components
by class name.EnforcerRuleException
- the enforcer rule exceptionpublic static String normalizeJDKVersion(String theJdkVersion)
theJdkVersion
- to be converted.Copyright © 2007–2015 The Apache Software Foundation. All rights reserved.