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(EnforcerRuleHelper helper)
This is the interface into the rule.
|
String |
getCondition() |
void |
setCondition(String condition) |
getCacheId, isCacheable, isResultValid
getMessage, setMessage
public String condition
#setCondition(String)}
,
#getCondition()}
public final void setCondition(String condition)
public final String getCondition()
public void execute(EnforcerRuleHelper helper) throws EnforcerRuleException
EnforcerRule
helper
- 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–2014 The Apache Software Foundation. All rights reserved.