[ 
https://issues.apache.org/jira/browse/GROOVY-1705?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16208116#comment-16208116
 ] 

Jochen Theodorou commented on GROOVY-1705:
------------------------------------------

See http://docs.groovy-lang.org/next/html/documentation/#_safer_scripting for 
transforms that do give you the ability to interrupt scripts. Even though the 
original message is 5 years old, the idea of adding the transform to the 
configuration used by the script engine is still the right now. See also 
http://mrhaki.blogspot.de/2011/06/groovy-goodness-add-asttransformations.html 
for how to use the transform

> stop running GroovyScriptEngine
> -------------------------------
>
>                 Key: GROOVY-1705
>                 URL: https://issues.apache.org/jira/browse/GROOVY-1705
>             Project: Groovy
>          Issue Type: Improvement
>          Components: GroovyScriptEngine
>    Affects Versions: 1.0-JSR-6
>         Environment: OS:WindowsXp
>            Reporter: Rajendra Kothari
>            Assignee: Jochen Theodorou
>             Fix For: 1.8.0
>
>
> Once GroovyScriptEngine starts executing a script it does stop untill it 
> finish whole script. There should be mechanism to stop a running script.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to