How to use groovy script with nuxeo shell ?
Hi i'm trying to use a groovy script with the nuxeo shell but everytime I launch the command “script test.groovy” in the remote namespaces, connected as Administrator i get an error “failed to run script”. I'm working on this problem for two days, I even try the groovy script example in the nuxeo shell folder but i still get the same error.
Thank you in advance for your help
Additionnal Informations :
Nuxeo Version : 5.5
test.groovy : " println “Hello” " ( this script actually work in the groovyConsole )
Hi,
to print a string in nuxeo-shell, just do like this in your groovy script :
def result = ““;
result += “Hello”;
return result;