I have a groovy script which calls another groovy script. Now I want to return something from the called script.
My code is :
public void readFromCSV(){
//ChangeUserPassword pe = new ChangeUserPassword();
//pe.changePassword(host,user,oldPwd,newPwd);
String []args = [host,user,oldPwd,newPwd];
Object ret = run(new File("ChangeUserPassword.groovy"),args);
Global.log.info("----> "+ret);
}
I want to return some value from ChangeUserPassword.groovy script to main script. The "ret" object holds null after the run returns. So, how can I return some value from called script to main script. Is it possible to do so?