org.eclipse.jetty.toolchain.enforcer.rules
Class VersionTxtRule

java.lang.Object
  extended by 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.


Constructor Summary
VersionTxtRule()
           
 
Method Summary
 void execute(org.apache.maven.enforcer.rule.api.EnforcerRuleHelper helper)
           
 String getCacheId()
           
 boolean isCacheable()
           
 boolean isResultValid(org.apache.maven.enforcer.rule.api.EnforcerRule arg0)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VersionTxtRule

public VersionTxtRule()
Method Detail

execute

public void execute(org.apache.maven.enforcer.rule.api.EnforcerRuleHelper helper)
             throws org.apache.maven.enforcer.rule.api.EnforcerRuleException
Specified by:
execute in interface org.apache.maven.enforcer.rule.api.EnforcerRule
Throws:
org.apache.maven.enforcer.rule.api.EnforcerRuleException

getCacheId

public String getCacheId()
Specified by:
getCacheId in interface org.apache.maven.enforcer.rule.api.EnforcerRule

isCacheable

public boolean isCacheable()
Specified by:
isCacheable in interface org.apache.maven.enforcer.rule.api.EnforcerRule

isResultValid

public boolean isResultValid(org.apache.maven.enforcer.rule.api.EnforcerRule arg0)
Specified by:
isResultValid in interface org.apache.maven.enforcer.rule.api.EnforcerRule


Copyright © 1995-2012 Mort Bay Consulting. All Rights Reserved.