public class RequirePrerequisite extends AbstractNonCacheableEnforcerRule
message
Constructor and Description |
---|
RequirePrerequisite() |
Modifier and Type | Method and Description |
---|---|
void |
execute(EnforcerRuleHelper helper)
This is the interface into the rule.
|
void |
setMavenVersion(String mavenVersion)
Set the mavenVersion
Can either be version or a range, e.g.
|
getCacheId, isCacheable, isResultValid
getMessage, setMessage
public void setMavenVersion(String mavenVersion)
2.2.1
or [2.2.1,)
mavenVersion
- the version or null
public void execute(EnforcerRuleHelper helper) throws EnforcerRuleException
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 exceptionCopyright © 2007–2014 The Apache Software Foundation. All rights reserved.