public class RequireReleaseVersion extends AbstractNonCacheableEnforcerRule
Modifier and Type | Field and Description |
---|---|
boolean |
failWhenParentIsSnapshot
Allows this rule to fail when the parent is defined as a snapshot.
|
message
Constructor and Description |
---|
RequireReleaseVersion() |
Modifier and Type | Method and Description |
---|---|
void |
execute(EnforcerRuleHelper theHelper)
This is the interface into the rule.
|
boolean |
isFailWhenParentIsSnapshot() |
void |
setFailWhenParentIsSnapshot(boolean failWhenParentIsSnapshot) |
getCacheId, isCacheable, isResultValid
public boolean failWhenParentIsSnapshot
public void execute(EnforcerRuleHelper theHelper) throws EnforcerRuleException
EnforcerRule
theHelper
- 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 boolean isFailWhenParentIsSnapshot()
public void setFailWhenParentIsSnapshot(boolean failWhenParentIsSnapshot)
Copyright © 2007-2016 The Apache Software Foundation. All Rights Reserved.