~ubuntu-branches/ubuntu/wily/maven-enforcer/wily

« back to all changes in this revision

Viewing changes to enforcer-rules/src/main/java/org/apache/maven/plugins/enforcer/EvaluateBeanshell.java

  • Committer: Package Import Robot
  • Author(s): Torsten Werner
  • Date: 2011-09-12 22:30:16 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: package-import@ubuntu.com-20110912223016-e2pk04avoq8bur7t
Tags: 1.0-1
* Team upload
* New upstream release.
* Add more Build-Depends.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
package org.apache.maven.plugins.enforcer;
 
2
 
1
3
/*
2
4
 * Licensed to the Apache Software Foundation (ASF) under one
3
5
 * or more contributor license agreements.  See the NOTICE file
16
18
 * specific language governing permissions and limitations
17
19
 * under the License.
18
20
 */
19
 
package org.apache.maven.plugins.enforcer;
20
21
 
21
22
import org.apache.maven.enforcer.rule.api.EnforcerRuleException;
22
23
import org.apache.maven.enforcer.rule.api.EnforcerRuleHelper;
29
30
 
30
31
/**
31
32
 * Rule for Maven Enforcer using Beanshell to evaluate a conditional expression.
32
 
 * 
 
33
 *
33
34
 * @author hugonnem
34
35
 */
35
36
public class EvaluateBeanshell
44
45
 
45
46
    /*
46
47
     * (non-Javadoc)
47
 
     * 
 
48
     *
48
49
     * @see org.apache.maven.enforcer.rule.api.EnforcerRule#execute(org.apache.maven.enforcer.rule.api.EnforcerRuleHelper)
49
50
     */
50
51
    public void execute( EnforcerRuleHelper helper )
75
76
 
76
77
    /**
77
78
     * Evaluate expression using Beanshell.
78
 
     * 
 
79
     *
79
80
     * @param script the expression to be evaluated
80
81
     * @param log the logger
81
82
     * @return boolean the evaluation of the expression