Bug #3288

Mis à jour par Matthieu Decorde il y a presque 3 ans

In a text editor opened on a .groovy file, the command does nothing and no error message.

The 'Execute text selection' works.

h3. Solution

- fix the silent NPE before calling the Groovy Script Engine
- use the GroovyShell.execute() method instead of the GroovyScriptEngine.createScript() method. The lastest needs the script to be in the root directory (TXMHOME/scripts/groovy/user)

Retour