Jahia 7.3 Jahia 8

Include groovy scripts in module

Question

How can I include groovy scripts in a module and run them later?

Answer

Groovy scripts can be included in module by placing them under the path:

/src/main/resources/META-INF/groovyConsole

 Groovy scripts included in modules under this path would then be available to be selected from groovy console in tools http://localhost:8080/modules/tools/groovyConsole.jsp