public class EvaluateBeanshell extends AbstractNonCacheableEnforcerRule
| Constructor and Description | 
|---|
EvaluateBeanshell()  | 
| Modifier and Type | Method and Description | 
|---|---|
protected boolean | 
evaluateCondition(String script,
                                  org.apache.maven.plugin.logging.Log log)
Evaluate expression using Beanshell. 
 | 
void | 
execute(EnforcerRuleHelper helper)
This is the interface into the rule. 
 | 
String | 
getCondition()  | 
void | 
setCondition(String condition)  | 
getCacheId, isCacheable, isResultValidgetLevel, getMessage, setLevel, setMessagepublic EvaluateBeanshell()
public final void setCondition(String condition)
public final String getCondition()
public void execute(EnforcerRuleHelper helper) throws EnforcerRuleException
EnforcerRulehelper - The helper provides access to the log, MavenSession and has
 helpers to get common components. It is also able to lookup components
 by class name.EnforcerRuleException - the enforcer rule exceptionprotected boolean evaluateCondition(String script, org.apache.maven.plugin.logging.Log log) throws EnforcerRuleException
script - the expression to be evaluatedlog - the loggerEnforcerRuleException - if the script could not be evaluatedCopyright © 2007–2015 The Apache Software Foundation. All rights reserved.