org.apache.maven.plugins.enforcer
Class AlwaysFail

java.lang.Object
  extended by org.apache.maven.plugins.enforcer.AbstractStandardEnforcerRule
      extended by org.apache.maven.plugins.enforcer.AbstractNonCacheableEnforcerRule
          extended by org.apache.maven.plugins.enforcer.AlwaysFail

public class AlwaysFail
extends AbstractNonCacheableEnforcerRule

Always fail. This rule is useful for testing the Enforcer configuration, or to always fail the build if a particular profile is enabled.

Author:
Ben Lidgey

Field Summary
 
Fields inherited from class org.apache.maven.plugins.enforcer.AbstractStandardEnforcerRule
message
 
Constructor Summary
AlwaysFail()
           
 
Method Summary
 void execute(EnforcerRuleHelper helper)
          
 
Methods inherited from class org.apache.maven.plugins.enforcer.AbstractNonCacheableEnforcerRule
getCacheId, isCacheable, isResultValid
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AlwaysFail

public AlwaysFail()
Method Detail

execute

public void execute(EnforcerRuleHelper helper)
             throws EnforcerRuleException

Throws:
EnforcerRuleException


Copyright © 2007-2012 The Apache Software Foundation. All Rights Reserved.