icfnext / aem-groovy-console

The AEM Groovy Console provides an interface for running Groovy scripts in the AEM container. Scripts can be created to manipulate content in the JCR, call OSGi services, or execute arbitrary code using the CQ, Sling, or JCR APIs.
Other
159 stars 94 forks source link

Failure if script does not return value #57

Closed bjorns closed 6 years ago

bjorns commented 7 years ago

The following script gives me a failure

println "Hello, world!"

Unless the script returns a value it is not executed.

println "Hello, world!"
return 0

Shouldn't this at least be documented?

markdaugherty commented 7 years ago

What version of the console are you using?

bjorns commented 7 years ago

Right, sorry about that. It's groovy console 10.1.0 on an AEM 6.2 SP1