07-18-2012 09:41 AM
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 )
07-19-2012 06:11 AM
Hi,
to print a string in nuxeo-shell, just do like this in your groovy script :
def result = "";
result += "Hello";
return result;
07-19-2012 06:11 AM
Hi,
to print a string in nuxeo-shell, just do like this in your groovy script :
def result = "";
result += "Hello";
return result;
07-19-2012 06:48 AM
Thank you Vincent for your answer, it works fine.
07-19-2012 07:21 AM
The reason why is how execution of groovy scripts is done in Nuxeo.
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.