~ubuntu-branches/ubuntu/quantal/maven-invoker-plugin/quantal

« back to all changes in this revision

Viewing changes to src/main/java/org/apache/maven/plugin/invoker/GroovyScriptInterpreter.java

  • Committer: Bazaar Package Importer
  • Author(s): Miguel Landaeta
  • Date: 2011-09-06 20:06:24 UTC
  • mfrom: (2.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20110906200624-n9hj2b0m9bx0pwtd
Tags: 1.5-2
* Team upload.
* Add Build-Depends on libmaven-plugin-tools-java (>= 2.8) (Closes: #640751)

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
 * Provides a facade to evaluate Groovy scripts.
37
37
 * 
38
38
 * @author Benjamin Bentmann
39
 
 * @version $Id: GroovyScriptInterpreter.java 684549 2008-08-10 16:30:43Z bentmann $
 
39
 * @version $Id: GroovyScriptInterpreter.java 737521 2009-01-25 15:22:26Z bentmann $
40
40
 */
41
41
class GroovyScriptInterpreter
42
42
    implements ScriptInterpreter
82
82
            {
83
83
                return interpreter.evaluate( script );
84
84
            }
85
 
            catch ( Exception e )
 
85
            catch ( ThreadDeath e )
 
86
            {
 
87
                throw e;
 
88
            }
 
89
            catch ( Throwable e )
86
90
            {
87
91
                throw new ScriptEvaluationException( e );
88
92
            }