Written by The Jahia Team
 
Developers
Sysadmins
   Estimated reading time:

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

Related links