Class VersionTxtRule
- java.lang.Object
-
- org.eclipse.jetty.toolchain.enforcer.rules.VersionTxtRule
-
- All Implemented Interfaces:
org.apache.maven.enforcer.rule.api.EnforcerRule,org.apache.maven.enforcer.rule.api.EnforcerRuleBase
public class VersionTxtRule extends java.lang.Object implements org.apache.maven.enforcer.rule.api.EnforcerRuleValidates 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 Modifier and Type Field Description private booleanshouldIfailSimple param.
-
Constructor Summary
Constructors Constructor Description VersionTxtRule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute(org.apache.maven.enforcer.rule.api.EnforcerRuleHelper helper)java.lang.StringgetCacheId()booleanisCacheable()booleanisResultValid(org.apache.maven.enforcer.rule.api.EnforcerRule arg0)
-
-
-
Method Detail
-
execute
public void execute(org.apache.maven.enforcer.rule.api.EnforcerRuleHelper helper) throws org.apache.maven.enforcer.rule.api.EnforcerRuleException- Specified by:
executein interfaceorg.apache.maven.enforcer.rule.api.EnforcerRule- Throws:
org.apache.maven.enforcer.rule.api.EnforcerRuleException
-
getCacheId
public java.lang.String getCacheId()
- Specified by:
getCacheIdin interfaceorg.apache.maven.enforcer.rule.api.EnforcerRule
-
isCacheable
public boolean isCacheable()
- Specified by:
isCacheablein interfaceorg.apache.maven.enforcer.rule.api.EnforcerRule
-
isResultValid
public boolean isResultValid(org.apache.maven.enforcer.rule.api.EnforcerRule arg0)
- Specified by:
isResultValidin interfaceorg.apache.maven.enforcer.rule.api.EnforcerRule
-
-