EnforcerRule, EnforcerRule2public class RequireReleaseVersion extends AbstractNonCacheableEnforcerRule
| Constructor | Description |
|---|---|
RequireReleaseVersion() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
execute(EnforcerRuleHelper theHelper) |
This is the interface into the rule.
|
boolean |
isFailWhenParentIsSnapshot() |
|
void |
setFailWhenParentIsSnapshot(boolean failWhenParentIsSnapshot) |
getCacheId, isCacheable, isResultValidgetLevel, getMessage, setLevel, setMessagepublic void execute(EnforcerRuleHelper theHelper) throws EnforcerRuleException
EnforcerRuletheHelper - 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 final boolean isFailWhenParentIsSnapshot()
public final void setFailWhenParentIsSnapshot(boolean failWhenParentIsSnapshot)
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.