public class EvaluateBeanshell extends AbstractNonCacheableEnforcerRule
| Modifier and Type | Field and Description |
|---|---|
String |
condition
Deprecated.
the visibility will be reduced to private with the next major version
|
message| 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(org.apache.maven.enforcer.rule.api.EnforcerRuleHelper helper) |
String |
getCondition() |
void |
setCondition(String condition) |
getCacheId, isCacheable, isResultValidgetMessage, setMessagepublic String condition
#setCondition(String)},
#getCondition()}public final void setCondition(String condition)
public final String getCondition()
public void execute(org.apache.maven.enforcer.rule.api.EnforcerRuleHelper helper)
throws org.apache.maven.enforcer.rule.api.EnforcerRuleException
org.apache.maven.enforcer.rule.api.EnforcerRuleExceptionprotected boolean evaluateCondition(String script, org.apache.maven.plugin.logging.Log log) throws org.apache.maven.enforcer.rule.api.EnforcerRuleException
script - the expression to be evaluatedlog - the loggerorg.apache.maven.enforcer.rule.api.EnforcerRuleException - if the script could not be evaluatedCopyright © 2007-2014 The Apache Software Foundation. All Rights Reserved.