|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.maven.plugins.enforcer.AbstractStandardEnforcerRule
org.apache.maven.plugins.enforcer.AbstractNonCacheableEnforcerRule
org.apache.maven.plugins.enforcer.EvaluateBeanshell
public class EvaluateBeanshell
Rule for Maven Enforcer using Beanshell to evaluate a conditional expression.
Field Summary | |
---|---|
java.lang.String |
condition
The condition to be evaluated. |
Fields inherited from class org.apache.maven.plugins.enforcer.AbstractStandardEnforcerRule |
---|
message |
Constructor Summary | |
---|---|
EvaluateBeanshell()
|
Method Summary | |
---|---|
protected boolean |
evaluateCondition(java.lang.String script,
org.apache.maven.plugin.logging.Log log)
Evaluate expression using Beanshell. |
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 |
Field Detail |
---|
public java.lang.String condition
Constructor Detail |
---|
public EvaluateBeanshell()
Method Detail |
---|
public void execute(EnforcerRuleHelper helper) throws EnforcerRuleException
EnforcerRuleException
protected boolean evaluateCondition(java.lang.String script, org.apache.maven.plugin.logging.Log log) throws EnforcerRuleException
script
- the expression to be evaluatedlog
- the logger
EnforcerRuleException
- if the script could not be evaluated
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |