Class VersionTxtRule
java.lang.Object
org.eclipse.jetty.toolchain.enforcer.rules.VersionTxtRule
- All Implemented Interfaces:
org.apache.maven.enforcer.rule.api.EnforcerRule
public class VersionTxtRule
extends Object
implements org.apache.maven.enforcer.rule.api.EnforcerRule
Validates that the if the active project version does NOT contain "SNAPSHOT" then the VERSION.txt should
also NOT contains "SNAPSHOT".
Only the "jetty-project" artifact is checked.
If the project version is SNAPSHOT, then this rule is skipped.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
execute
(org.apache.maven.enforcer.rule.api.EnforcerRuleHelper helper) boolean
boolean
isResultValid
(org.apache.maven.enforcer.rule.api.EnforcerRule arg0)
-
Field Details
-
shouldIfail
private boolean shouldIfailSimple param. This rule will fail if the value is true.
-
-
Constructor Details
-
VersionTxtRule
public VersionTxtRule()
-
-
Method Details
-
execute
public void execute(org.apache.maven.enforcer.rule.api.EnforcerRuleHelper helper) throws org.apache.maven.enforcer.rule.api.EnforcerRuleException - Specified by:
execute
in interfaceorg.apache.maven.enforcer.rule.api.EnforcerRule
- Throws:
org.apache.maven.enforcer.rule.api.EnforcerRuleException
-
getCacheId
- Specified by:
getCacheId
in interfaceorg.apache.maven.enforcer.rule.api.EnforcerRule
-
isCacheable
public boolean isCacheable()- Specified by:
isCacheable
in interfaceorg.apache.maven.enforcer.rule.api.EnforcerRule
-
isResultValid
public boolean isResultValid(org.apache.maven.enforcer.rule.api.EnforcerRule arg0) - Specified by:
isResultValid
in interfaceorg.apache.maven.enforcer.rule.api.EnforcerRule
-