Package org.apache.maven.enforcer.rules
Class AlwaysFail
java.lang.Object
org.apache.maven.enforcer.rule.api.AbstractEnforcerRule
org.apache.maven.enforcer.rules.AbstractStandardEnforcerRule
org.apache.maven.enforcer.rules.AlwaysFail
- All Implemented Interfaces:
EnforcerRuleBase
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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
execute()
getLog()
void
setLog
(EnforcerLogger arg0) toString()
Methods inherited from class org.apache.maven.enforcer.rules.AbstractStandardEnforcerRule
formatLocation, getMessage, setMessage
Methods inherited from class org.apache.maven.enforcer.rule.api.AbstractEnforcerRule
getCacheId, getLevel
-
Constructor Details
-
AlwaysFail
public AlwaysFail()
-
-
Method Details
-
execute
- Specified by:
execute
in classAbstractEnforcerRule
- Throws:
EnforcerRuleException
-
toString
-
setLog
- Specified by:
setLog
in interfaceEnforcerRuleBase
-
getLog
-